https://github.com/victorlirafront/blog-backend
🚧 RESTful API built with NestJS and TypeScript. Supports CRUD operations for blog posts, with validation, JWT authentication, and database integration. Designed to be modular and scalable.
https://github.com/victorlirafront/blog-backend
mvc mvc-architecture oop oop-principles
Last synced: 10 months ago
JSON representation
🚧 RESTful API built with NestJS and TypeScript. Supports CRUD operations for blog posts, with validation, JWT authentication, and database integration. Designed to be modular and scalable.
- Host: GitHub
- URL: https://github.com/victorlirafront/blog-backend
- Owner: victorlirafront
- Created: 2025-07-13T17:26:02.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-29T02:24:42.000Z (11 months ago)
- Last Synced: 2025-07-29T02:36:38.569Z (11 months ago)
- Language: TypeScript
- Homepage:
- Size: 292 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Blog Posts API
Projeto desenvolvido com NestJS para gerenciamento de posts em um blog.
---
## 🚀 Tecnologias
* [Node.js](https://nodejs.org/)
* [NestJS](https://nestjs.com/)
* [TypeORM](https://typeorm.io/)
* [MySQL](https://www.mysql.com/)
---
## ⚙️ Instalação
```bash
npm install
```
---
## 🛠️ Configuração do Banco de Dados
1. Instale e abra o **XAMPP** para iniciar o MySQL.
2. Crie um banco de dados com o nome:
```
blog_db
```
> Ou utilize o nome definido na variável `DB_NAME` do arquivo `.env`.
3. Verifique se os dados de conexão estão corretos no arquivo `.env`.
---
## ▶️ Executar o Projeto
```bash
npm run start:dev
```
Após iniciar o servidor, o NestJS criará automaticamente as tabelas no banco de dados.
---
## 🌱 Popular o Banco de Dados
```bash
npm run seed
```
Esse comando irá inserir dados fictícios (mock) nas tabelas criadas.