Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guaradata/guaradata-backend
Repositório de códigos do backend (CMS) do site e blog Guaradata, desenvolvido em Nest.js.
https://github.com/guaradata/guaradata-backend
Last synced: 9 days ago
JSON representation
Repositório de códigos do backend (CMS) do site e blog Guaradata, desenvolvido em Nest.js.
- Host: GitHub
- URL: https://github.com/guaradata/guaradata-backend
- Owner: guaradata
- Created: 2024-04-28T23:20:07.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-06-14T23:17:26.000Z (7 months ago)
- Last Synced: 2024-11-09T06:16:54.252Z (2 months ago)
- Language: TypeScript
- Homepage:
- Size: 341 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```bash
cd backend
```### Installation
```bash
npm install
```### Database
To perform data migrations with Prisma, run the following command in the backend folder:
```bash
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:
```bash
cd..
```Add the .env file to the root directory. The directory contains an example .env file (env.example). Build and run:
```bash
docker-compose -f docker-compose.dev.yml up --build
```### Running the app
```bash
npm run start:dev
```## Setup Production Server
Run the following command to build the project in Docker for production:
```bash
docker-compose up --build
```