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

https://github.com/ndizeyedavid/node-js-backend-mysql

Just for my study purposes, clone it to learn how to use mysql with nodejs
https://github.com/ndizeyedavid/node-js-backend-mysql

Last synced: 3 months ago
JSON representation

Just for my study purposes, clone it to learn how to use mysql with nodejs

Awesome Lists containing this project

README

        

# How to catch up

first follow these steps to start and run it

1. clone it
```bash
git clone https://github.com/ndizeyeDavid/node-js-backend-mysql
```

2. enter the project folder
```bash
cd node-js-backend-mysql
```

3. install all dependecies in one go
```bash
npm install
```

4. create & configure the .env file
```.env
SERVER_PORT=
HOST=
USER=
PASSWORD=
DATABASE=
```
reference

![Screenshot 2024-12-22 061418](https://github.com/user-attachments/assets/91635b2d-89f7-47ca-9649-3b99b07aad65)

5. Create a database and match the table called products

![Screenshot 2024-12-22 061610](https://github.com/user-attachments/assets/ecacc12c-d5c0-4081-b891-be39c0bd13a7)

6. start the server
```bash
npm start
```

7. create endpoints in **Post Man** or **Thunder Client**

![Screenshot 2024-12-22 061458](https://github.com/user-attachments/assets/aeff976a-e8de-497f-9311-8f8daf160929)

8. lastly this is our your api calls should be

![Screenshot 2024-12-22 061551](https://github.com/user-attachments/assets/afb3e1b2-82ba-4b42-9971-12a92aff639e)
![Screenshot 2024-12-22 061543](https://github.com/user-attachments/assets/b38c76a7-74d8-4a26-93fc-636f14cbabbc)
![Screenshot 2024-12-22 061534](https://github.com/user-attachments/assets/4219c034-c8ca-4898-9bb6-52e6f6018537)
![Screenshot 2024-12-22 061524](https://github.com/user-attachments/assets/593b04e2-9a9d-4814-a7d6-f4e7c606b9c9)
![Screenshot 2024-12-22 061516](https://github.com/user-attachments/assets/7776862f-2de3-4fde-a29e-95d3d3ad4cd0)

## ✨Happy codding 💫