Skip to content

citu-cpe/handijob

Repository files navigation

NestJS/NextJS Template

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

How to develop locally

Step 1: Set the required environment variables

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)

Step 2: Install dependencies

npm install

Step 3: Have a PostgreSQL database instance running

With docker-compose

cd backend
docker-compose up

Without docker-compose

Install PostgreSQL if you haven't already and follow the steps to get a PostgreSQL database up and running

Step 4: Start the app

npm run start:dev

Step 5: Make sure the app is running by visiting http://localhost:3000

Releases

No releases published

Packages

 
 
 

Contributors