https://github.com/luandersonalvesdev/blogs-api
It's a Restfull CRUD API Express using Docker, MySQL with Sequelize and JWT.
https://github.com/luandersonalvesdev/blogs-api
api-restful docker express jwt jwt-authentication mysql sequelize
Last synced: 10 months ago
JSON representation
It's a Restfull CRUD API Express using Docker, MySQL with Sequelize and JWT.
- Host: GitHub
- URL: https://github.com/luandersonalvesdev/blogs-api
- Owner: luandersonalvesdev
- Created: 2023-07-15T23:18:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-20T20:53:39.000Z (about 2 years ago)
- Last Synced: 2025-01-21T19:52:37.802Z (12 months ago)
- Topics: api-restful, docker, express, jwt, jwt-authentication, mysql, sequelize
- Language: JavaScript
- Homepage:
- Size: 221 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CRUD Blogs API
## About project
Blogs API is a project developed in the back-end module at Trybe.
Made using conventional commits, it's a RESTfull Express CRUD API to blog with Sequelize, JWT (Json Web Token), MSC (model, service and controller) software architecture and a normalized database using MySQL.
## Get Started
1. #### To run you just need [Docker](https://docs.docker.com/engine/install/ubuntu/) and [Docker Compose](https://docs.docker.com/compose/install/).
2. #### Clone this repository with:
```
git@github.com:luandersonalvesdev/shooes-store.git
```
3. #### Enter the folder:
```
cd blogs-api
```
4. #### Install the dependencies:
```
npm i
```
5. #### Climb the containers with:
```
docker-compose up -d
```
6. #### Use to "enter" the container:
```
docker exec -it blogs_api bash
```
7. #### Inside the container run the seeders:
```
npm run seed
```
8. #### Inside the container start the API:
```
npm start
```
### Now you can use the route "localhost:3001/..."
---
## 👨💻 Improvements:
1. MSC Software Architecture.
2. Sequelize.
3. Sequelize comands.
4. Sequelize transactions.
4. Token with JWT.
5. Data validations.
6. Conventional commits.
7. Climb two dockers and interact between them.
8. CRUD API.
9. API RESTfull.
## 🛠️ Technologies:
1. Node
2. Express
2. Sequelize
2. JWT - Json Web Token
7. Joi
8. Docker
9. Docker Compose
10. MySQL
11. JavaScript
---
## Contact
>https://linkedin.com/in/luandersonalvesdev