This Project serves the backend APIs required for Real Dev Squad web projects. This project is built in Express.js.
config/local.js
. Override the required config values from config/development.js
and config/default.js
into config/local.js
.clientId
and clientSecret
. Add the callback URL as http://<HOSTNAME>:<PORT>/auth/github/callback
\n
with \\n
in private_key field.Please install yarn
and volta
To install Volta, please follow the process
Install all the packages using the following command:
yarn
Now if one runs yarn install. The yarn.lock will be unexpectedly updated with an unknown future version of a dependency, potentially breaking the build in the future. To ensure that the yarn.lock file is not update, you will need to use the --frozen-lockfile flag.
yarn install --frozen-lockfile
This command should be successful, before moving to development.
yarn validate-setup
Head over to TDD Tests Files List, and add the list of your new (or old) test files.
You can use wildcard '*' in the filepaths
Run TDD in watch mode. Exiting this command will print the coverage report. Try to achieve 100% coverage.
yarn tdd:watch
yarn dev
yarn
yarn run test
npm prune --production
yarn start
Note: These are handled automatically behind the scene when pushing to Heroku
Check out our video on how to setup the backend here: Wiki link
Read more about contributing to the project: CONTRIBUTING