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.
Follow these steps to set up the project environment:
-
Clone the repository:
git clone <repository-url> cd <repository-directory>
-
Install dependencies:
npm install
-
Set up the MySQL database:
- Create a database named
node.js_express_mysql_sequelize_restful-api_pagination_tutorial. - Use
.env.exampleto create a.envfile with your database credentials. - Configure the database connection in
config/db.config.js.
- Create a database named
-
Run the application:
npm start
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
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.
This project is open-sourced software licensed under the MIT license.