Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/larryivc/rest-node-mysql
Rest Api whit a Node JavaScript
https://github.com/larryivc/rest-node-mysql
dotenv javascript mysql nodejs railway
Last synced: 3 days ago
JSON representation
Rest Api whit a Node JavaScript
- Host: GitHub
- URL: https://github.com/larryivc/rest-node-mysql
- Owner: LarryIVC
- Created: 2024-03-04T01:54:24.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-05-18T01:16:11.000Z (8 months ago)
- Last Synced: 2024-05-19T01:26:38.293Z (8 months ago)
- Topics: dotenv, javascript, mysql, nodejs, railway
- Language: JavaScript
- Homepage: https://rest-node-mysql-production.up.railway.app/api/v1/ping
- Size: 77.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# To config properly
- Add a `.env` file in the root of the project with the following content:
```
PORT='1234'
DB_HOST='localhost'
DB_USER='my_user'
DB_PASSWORD='my_password'
DB_DATABASE='my_database'
DB_PORT='mysql_port'
```- replace whit your own data, and PORT is the port where the server will run.
- [live version](https://rest-node-mysql-production.up.railway.app/api/v1)
- End Points:
- /api/v1/ping (GET)
- /api/v1/employees (GET, POST)
- /api/v1/employees/:id (GET, PATCH, DELETE)# Aknowledgements
- [Node.js](https://nodejs.org/)
- [Express.js](https://expressjs.com/)
- [MySQL](https://www.mysql.com/)
- [dotenv](https://www.npmjs.com/package/dotenv)# 🙏 Acknowledgments
- I would like to thank [@FaztTech](https://www.youtube.com/@FaztTech) for his [tutorial](https://youtu.be/3dSkc-DIM74?si=kVO7kUvhYCkw44Fu) based it on.