elaboration.mp4
A Simple REST API in go utilizing the repository pattern.
Performing the crud operations on the northwind database.
| Route | Method | Description |
|---|---|---|
| /customers | GET | Fetches all the customers |
| /customers/Id | GET | Fetches a customer with Id |
| /customers/create | POST | Creates a customer |
| /customers/update/Id | PATCH | Updates a customer |
| /customers/delete/Id | DELETE | Deletes a customer |
1- Clone the repo.
2- Navigate to the folder and run go get.
3- Replace your env variables in .env file.
4- Run air cmd.
5- Code your heart out.