The goal of this project is to create a template for full stack web development using NestJS as the backend framework and NextJS as the frontend framework
Create a .env file with the following environment variables inside the backend
folder:
DATABASE_URL: postgres://dbName:dbPassword@dbHost:dbPort/dbName (e.g. postgres://handijob:handijob@localhost:5432/handijob)
JWT_ACCESS_TOKEN_SECRET: Secret key for signing JWT access tokens. (e.g. handicap_access)
JWT_ACCESS_TOKEN_EXPIRATION_TIME: Expiration time in ms for signing JWT access
tokens. (e.g. 8640 which is one day)
JWT_REFRESH_TOKEN_SECRET: Secret key for signing JWT refresh tokens (e.g. handijob_refresh)
JWT_REFRESH_TOKEN_EXPIRATION_TIME: Expiration time in ms for signing JWT refresh
tokens. (e.g. 31540000 which is one year)
npm installWith docker-compose
cd backend
docker-compose upWithout docker-compose
Install PostgreSQL if you haven't already and follow the steps to get a PostgreSQL database up and running
npm run start:dev