You need to be using:
- Git - Download & Install Git
- Node - Download & Install Node
- Node Version Manager - Dowload & Install NVM
- Yarn - Dowliad & Intall Yarn
- Docker Compose - Dowload & Install Docker
This project is ready to work with docker-compose to initalize the needed stack during development process. To start working, run the following commands:
docker-compose build
docker-compose up
Create an .env
file in the root project and provide the following values:
PORT=3001
DATABASE_URL=postgresql://develop:[email protected]:5432/develop
REDIS_URL=redis://127.0.0.1:63
JWT_SECRET=somevaluetouse
You need Node v16.15.0 Set versions manually or with nvm:
nvm use
Install the required libraries and packages dependencies
yarn install
Run prisma migrate and generate to use prisma client and types in proyect
yarn prisma:migrate
yarn prisma:generate
Run the development server
yanr dev
You can quickly have a look at the data of your local database and check if your app is working correctly with prisma studio
yarn prisma:studio
You can create a production build with
yarn build
Uou can access the documentation available in production