- The example shows how to create the CRUD API with Express and using MySQL as a database.
- The article of this repo https://blog.stackpuz.com/create-a-crud-api-with-express/
- To find more resources, please visit https://stackpuz.com
- Node.js
- MySQL
- Clone this repository
git clone https://github.com/stackpuz/Example-CRUD-Express
- Install the dependencies
npm install
- Create a new database and run /database.sql script to create tables and import data.
- Edit the database configuration in /config.js file.
- Run project
node index.js
- Navigate to http://localhost:8000