This is a project for a Blog API built with Node.js and Sequelize. The project serves as an example of building a RESTful API for a blogging platform.
The project utilizes the following technologies:
- Node.js ⚙️
- Express.js 🚀
- Sequelize 🗄️
- MySQL 🐬
- JSON Web Tokens (JWT) 🔒
Before you begin, ensure that you meet the following requirements:
- Have Node.js and MySQL installed.
Follow these steps to set up and run the project locally:
- Clone the repository:
- Navigate to the project directory:
- Install the dependencies:
- Set up the database:
- Start the application:
git clone https://github.com/BrunoSouza88/Sequelize-NodeJs_Blogs-Api_Trybe.git
cd Sequelize-NodeJs_Blogs-Api_Trybe
npm install
Create a MySQL database and update the configuration in the config/database.js
file.
npm start
The API allows users to perform CRUD operations on blog posts and comments. Users can create new blog posts, retrieve existing posts, update post information, and delete posts. Users can also add comments to blog posts and manage comments by updating or deleting them. 💻
Contributions are what make the open-source community a fantastic place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the project.
- Create a branch for your feature (
git checkout -b feature/AmazingFeature
). - Commit your changes (
git commit -m 'Add some amazing feature'
). - Push to the branch (
git push origin feature/AmazingFeature
). - Open a Pull Request.
This project is licensed under the MIT License.
Bruno Souza - bmsouza88@gmail.com ✉️
Project Link: https://github.com/BrunoSouza88/Sequelize-NodeJs_Blogs-Api_Trybe 🌐