-
Create configs folder in the root of the project
-
Add 2 files in the folder, dev.env and test.env
-
In each file add the enviroment variables
ENV=test or dev API_URL=url to api WEB_URL=url to web app DB_URI=uri to connect to database CONN_KEY=secret key for jwt CONN_ALGORITHM=algorithm for jwt PORT=port where the application will run MAILER_SERVICE=service to send emails, should be gmail MAILER_USER=mail address MAILER_PASS=mail password MAILER_CLIENT_ID=variable provided by google MAILER_SECRET=variable provided by google MAILER_REFRESH_TOKEN=variable provided by google MAILER_ACCESS_TOKEN=variable provided by google
-
To get the variables to configure the mailer function follow this guide
-
Run dev:sync and test:sync scripts to create the model tables in db
$ npm start
$ npm build
$ npm run dev:sync
$ npm run test:sync