👨💻 Developed by Matheus Ramalho de Oliveira
🏗️ Brazilian Software Engineer
✉️ kastorcode@gmail.com
🦫 LinkedIn • Instagram
This project is my first contact with NestJS. NestJS is a progressive Node.js framework for building efficient, reliable and scalable server-side applications. This backend is a CRUD for common and partner users who can register events. The app is multi-tenancy and works on the following concepts: Docker Compose as containerization tool, PostgreSQL as database, pgAdmin as database frontend, NestJS as backend framework, NestJS modules, controllers, providers, interceptors, and guards, RESTful API as communication protocol, JWT as authentication, Prisma as ORM and migrations, Decorator and DTO design patterns.
- Make a clone of this repository;
- Open the project folder in a terminal;
- Run
yarn
to install dependencies; - Run
yarn start:dev
to launch the server in watch mode athttp://localhost:3000
; - Run
docker compose up
to load PostgreSQL and pgAdmin into Docker containers; - Run
npx prisma db pull
to execute migrations and sync Prisma schema with database; - pgAdmin is a PostgreSQL frontend that can be accessed at
http://localhost:80
; - The
api.http
file has CURL requests that can be made using the REST Client extension.
<kastor.code/>