Skip to content

Repositório de códigos do backend (CMS) do site e blog Guaradata, desenvolvido em Nest.js.

Notifications You must be signed in to change notification settings

guaradata/guaradata-backend

Repository files navigation

Guaradata backend

This repository contains the backend of the Guaradata project. It is responsible for managing the business logic and communication with the database using NestJS, Prisma, and Mongoose. The backend can be configured for both development and production, with Docker support to facilitate dependency management and deployment.

Setup Development Server

Access backend folder

cd backend

Installation

npm install

Database

To perform data migrations with Prisma, run the following command in the backend folder:

npx prisma migrate dev --name init

Docker container

Run the following command to build the Docker project on your local machine from the root folder:

cd..

Add the .env file to the root directory. The directory contains an example .env file (env.example). Build and run:

docker-compose -f docker-compose.dev.yml up --build

Running the app

npm run start:dev

Setup Production Server

Run the following command to build the project in Docker for production:

docker-compose up --build

About

Repositório de códigos do backend (CMS) do site e blog Guaradata, desenvolvido em Nest.js.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published