-
Download Node.js
-
Clone this repository
git clone https://github.com/saizaax/yet-another-schedule-app-backend
-
Open terminal and navigate to repository directory
cd yet-another-schedule-app-backend
-
Add
.env
file to root directoryPORT=8000 DATABASE_URL=postgresql://username:password@localhost:5432/schedule?schema=public SECRET_TOKEN=SECRET PARSER_URL=http://localhost:5000/api
-
Install the packages required for the project
npm i
-
Generate Prisma Client
npx prisma generate
-
Run Prisma migrations
npx prisma migrate dev
-
Start the project with npm
npm run dev
-
Request with curl
http://localhost:8000/api/groups
-
Open terminal and navigate to repository directory
cd yet-another-schedule-app-backend
-
Install the packages required for the project
npm i
-
Generate Prisma Client
npx prisma generate
-
Make production build with npm
npm run build
-
Download & Install Docker / Docker Desktop
-
Clone this repository
git clone https://github.com/saizaax/yet-another-schedule-app-backend
-
Open terminal and navigate to repository directory
cd yet-another-schedule-app-backend
-
Add
.env
file to root directory / Editdocker-compose.yml
environment variablesPORT=8000 DATABASE_URL=postgresql://username:password@localhost:5432/schedule?schema=public SECRET_TOKEN=SECRET PARSER_URL=http://localhost:5000/api
-
Run docker-compose
docker-compose up --build --detach
-
Request with curl
http://localhost:8000/api/groups