.env file with.
DATABASE_URL="postgresql://trustcar:password@localhost:5432/trust_car_dev_db?schema=public"
JWT_SECRET="mysecret"
- In project repo first install the dependencies
npm installand then runnpm run devfor development mode (By default App is live onlocalhost:8080)
- In project repo first install the dependencies
npm installif not done before and then runnpm run test.
A git branch should start with a category. Pick one of these: feature, bugfix, hotfix, or test.
eg. git branch <category>/<short-description>-<ticket no. on borad>
- If you need to add a feature:
git branch feature/add-event-listner-42. - If you need to fix a bug:
git branch bugfix/button-not-displaying-342 - If you need to fix a bug really fast (possibly with a temporary solution):
git branch hotfix/registration-form-not-working-232 - If you need to experiment outside of an issue/ticket:
git branch test/http-client
- In project repo run
docker compose -f .\docker-compose.dev.yml up. - Stop the backend container if its running.
- Run
npm run migrate.