c243554e16
Bumps [@nestjs/testing](https://github.com/nestjs/nest/tree/HEAD/packages/testing) from 10.3.1 to 10.3.3. - [Release notes](https://github.com/nestjs/nest/releases) - [Commits](https://github.com/nestjs/nest/commits/v10.3.3/packages/testing) --- updated-dependencies: - dependency-name: "@nestjs/testing" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
.github | ||
.husky | ||
.vscode | ||
prisma | ||
resources | ||
src | ||
test | ||
.commitlintrc.json | ||
.dockerignore | ||
.editorconfig | ||
.env.example | ||
.gitignore | ||
.swcrc | ||
biome.json | ||
commitlint.config.js | ||
docker-compose.db.yml | ||
docker-compose.yml | ||
docker.env.example | ||
Dockerfile | ||
LICENSE | ||
nest-cli.json | ||
package-lock.json | ||
package.json | ||
README.md | ||
tsconfig.build.json | ||
tsconfig.json |
A simple RESTful API made with NestJS and Fastify.
🚀 Preparing the environment
Make sure that you have Node, NPM, Docker and Docker Compose installed on your computer.
First, install the necessary packages with the following commands:
$ npm i
After that, you can update the .env
and the docker.env
files. The .env
file is for development environment and the docker.env
is for production.
You can find the templates for those files on .env.example
and docker.env.example
.
To run the necessary services you can execute the following command:
$ npm run docker:db
This will start the following services:
- PostgreSQL
- Redis
- MinIO
Apply the migrations to the database with the following command:
$ npm run migrate:dev
And now, you can start the server with the command:
$ npm run dev:start
You can check the documentation accessing the endpoint /
in your browser
To run in production you can use the following command:
$ npm run docker
This will start all the previous services and the back-end image.
🗄️ Stack
This back-end uses the following stack:
- Docker
- Fastify
- MinIO
- NestJS
- Passport
- PostgreSQL
- Prisma
- Redis
- Swagger
- Typescript