An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          









MySQL Badge
Node.js Badge
Express Badge
Postman Badge


GitHub Badge
Email Badge
BuyMeACoffee Badge


Bronze

---------------

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)

---------------