This project provides a RESTful API for a blog dedicated to the game Warframe. It allows users to create, read, update, and delete blog posts related to Warframe builds, strategies, and news.
- CRUD Operations: Perform Create, Read, Update, and Delete operations on blog posts.
- Docker Support: Includes Docker configuration for easy setup and deployment.
- Swagger Documentation: API documented with Swagger for easy reference and testing.
- Node.js
- MySQL
- Docker (optional)
-
Clone the repository:
git clone https://github.com/XavierLopez25/warframe_blog.git
-
Install the dependencies:
cd warframe_blog npm install
-
Set up the MySQL database:
- Run MySQL on your local machine or use Docker to create an image and run the database instance with mysql2 and configure your database connection details.
- Execute the
schema.sql
script to create the necessary database and tables.
-
Configure your database connection details in
src/conn.js
. -
Start the application:
npm start
Refer to the Swagger documentation available at /api-docs
endpoint for detailed API usage information.
Contributions are welcome! Feel free to open pull requests or issues to suggest improvements or add new features.