Skip to content

vickywane/test-yenza-nest

Repository files navigation

YYENZA Backend Application

This is the main NestJS application for yyenza.

Tech

  • Node 20
  • NestJS
  • Postgres

Prerequisites

Start NestJS app (with Postgres DB run on docker)

This app can be either run on a docker compose environment or local environment for convenience. Postgres DB will be run on a docker environment. Before you get started, you'll need to install a few tools:

  1. Run NestJS app Locally:
  • To run locally, install the dependencies
// install dependencies
npm install

// generate types using prisma cli and initialise database
npx prisma generate && npx prisma migrate dev

// seed data to db
npx prisma db seed

// start the app
npm run start:dev

  • App should be running at http://localhost:3000/
  • If you send a GET request to http://localhost:3000/ you should get "Hello World!"
  1. Docker Compose: This tool is used for defining and running multi-container Docker applications.
docker compose up -d

Start Swagger

  • To view the API endpoints in Swagger, once you start the NestJS app (see instructions above), you can go to http://localhost:3000/api

Troubleshooting

Deployment

Project is deployed on AWS......

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •