You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm run dev : Start local development server using nodemon
Environment variables
DB_HOST=localhost #database host
DB_USER=johndoe #database user
DB_PASSWORD=superpassword #password of the database user
DB_DATABASE=sample #database name
DB_DIALECT=mysql #one of mysql | postgres | mssql | mariadb | sqlite
DB_TEST=sample_test #database for test env
PORT=5050 #port to listen for your server
secret=yoursecretforjwt #secret used for jwt encryption
CLIENT_URLS=http://local.fr #list of authorized clients.#if you need to set many clients, please add ", " between each of them like the following:# CLIENT_URLS=http://local.fr, http://test.com, http://johndoe.io
Execution and writing of tests
npm test : Start test server using mocha
Using Chai and Chai-http with method should
Curious behavior
importing a route in a model will crash or not validate your tests