Skip to content

This repository contains the code and resources for a tutorial on how to create a Restful API with Node.js, Express, MySQL, and Sequelize, including pagination functionality.

License

Notifications You must be signed in to change notification settings

AlifRadifanPiandy/Node.js_Express_MySQL_Sequelize_Restful-API_Pagination_Tutorial

Repository files navigation

Node.js_Express_MySQL_Sequelize_Restful-API_Pagination_Tutorial

This repository contains the code and resources for a tutorial on how to create a Restful API with Node.js, Express, MySQL, and Sequelize, including pagination functionality.

Setup

Follow these steps to set up the project environment:

  1. Clone the repository:

    git clone <repository-url>
    cd <repository-directory>
  2. Install dependencies:

    npm install
  3. Set up the MySQL database:

    • Create a database named node.js_express_mysql_sequelize_restful-api_pagination_tutorial.
    • Use .env.example to create a .env file with your database credentials.
    • Configure the database connection in config/db.config.js.
  4. Run the application:

    npm start

API Documentation

API documentation is available in Postman format. You can import the Postman JSON file that accompanies this project to get complete documentation about the API endpoints and required requests.

https://documenter.getpostman.com/view/24200467/2sA3XJn5Wy

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

This project is open-sourced software licensed under the MIT license.

About

This repository contains the code and resources for a tutorial on how to create a Restful API with Node.js, Express, MySQL, and Sequelize, including pagination functionality.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published