https://github.com/scottgriv/mysql-node-express-rest_api
Node.js API calls to a MySQL database.
https://github.com/scottgriv/mysql-node-express-rest_api
api database express expressjs mysql node node-js nodejs programming-languages rest rest-api restful-api sql
Last synced: 3 months ago
JSON representation
Node.js API calls to a MySQL database.
- Host: GitHub
- URL: https://github.com/scottgriv/mysql-node-express-rest_api
- Owner: scottgriv
- License: unlicense
- Created: 2023-01-03T00:04:20.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-10-18T00:54:28.000Z (8 months ago)
- Last Synced: 2026-02-01T04:26:10.066Z (5 months ago)
- Topics: api, database, express, expressjs, mysql, node, node-js, nodejs, programming-languages, rest, rest-api, restful-api, sql
- Language: JavaScript
- Homepage:
- Size: 1.21 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
---------------
Build a REST API with Node.js, Express, and MySQL
A simple REST API that allows you to perform CRUD operations on a MySQL database using Node.js, Express, and MySQL.
- The data that is used consists of programming languages using CRUD operations.
---------------
## Table of Contents
- [Getting Started](#getting-started)
- [Resources](#resources)
- [License](#license)
- [Credits](#credits)
## Getting Started
- Install [Node.js](https://nodejs.org/en/) and [MySQL](https://www.mysql.com/).
- Install [Postman](https://www.postman.com/) to test the API.
- Install [MySQL Workbench](https://www.mysql.com/products/workbench/) to view the database.
- Install MySQL driver for Node.js: `npm install mysql`
- Install Express: `npm install express`
- Create a database in MySQL Workbench called `languages`.
- Run the `sql/projects.sql` file to create the `projects` table.
- Start the server: `node server.js`
- Test the API using Postman.
## Resources
- [Node.js](https://nodejs.org/en/)
- [Express](https://expressjs.com/)
- [MySQL](https://www.mysql.com/)
- [Postman](https://www.postman.com/)
- [MySQL Workbench](https://www.mysql.com/products/workbench/)
- [MySQL driver for Node.js](https://www.npmjs.com/package/mysql)
## License
This project is released under the terms of **The Unlicense**, which allows you to use, modify, and distribute the code as you see fit.
- [The Unlicense](https://choosealicense.com/licenses/unlicense/) removes traditional copyright restrictions, giving you the freedom to use the code in any way you choose.
- For more details, see the [LICENSE](LICENSE) file in this repository.
## Credits
**Author:** [Scott Grivner](https://github.com/scottgriv)
**Email:** [scott.grivner@gmail.com](mailto:scott.grivner@gmail.com)
**Website:** [linktr.ee/scottgriv](https://www.linktr.ee/scottgriv)
**Reference:** [Main Branch](https://github.com/scottgriv/mysql-node-express-rest_api)
---------------