- node 12.16.3
- npm 6.14
- git clone
- npm install
- create environement variables
- create your .env file
- npm run dev : Start local development server using nodemon
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
- npm test : Start test server using mocha
- Using Chai and Chai-http with method
should
- importing a route in a model will crash or not validate your tests