- Postgres
- NestJS
$ pnpm add -g @nestjs/cliNest framework TypeScript starter repository.
Must have cloned the repo!
$ pnpm installClone file .env.template to .env to run things smoothly.
DB_NAME=teslo_db
DB_HOST=localhost
DB_PORT=5432
DB_USERNAME=postgres
DB_PASSWORD=MyS3cr3tPassword
PORT=3000Must have installed docker with Postgres
# In ./ run to create the Database:
$ docker-compose up -d- Must have file
.env.prodcreated - Set environment variables for PROD file
- Create a new image (containing app and database) -> Will take some time ⏳
# Windows
docker-compose -f docker-compose.prod.yaml --env-file .env.prod up --build
# Linux
sudo docker compose -f docker-compose.prod.yaml --env-file .env.prod up --buildOnce you've created the build image you can now execute this command in order to avoid having the process in the console.
# Windows
docker-compose -f docker-compose.prod.yaml --env-file .env.prod up -d
# Linux
sudo docker compose -f docker-compose.prod.yaml --env-file .env.prod up -d# development
$ pnpm run start
# watch mode
$ pnpm run start:dev
# production mode
$ pnpm run start:prod# Call this endpoint in Postman or curl and that would populate the database. Host means localhost and the port
{{host}}/api/seedCheck out a few resources that may come in handy when working with NestJS:
- Visit the NestJS Documentation to learn more about the framework.
- For questions and support, please visit our Discord channel.
- To dive deeper and get more hands-on experience, check out our official video courses.
- Deploy your application to AWS with the help of NestJS Mau in just a few clicks.
- Visualize your application graph and interact with the NestJS application in real-time using NestJS Devtools.
- Need help with your project (part-time to full-time)? Check out our official enterprise support.
- To stay in the loop and get updates, follow us on X and LinkedIn.
- Looking for a job, or have a job to offer? Check out our official Jobs board.