https://github.com/erdemkeren/customer-management-api
https://github.com/erdemkeren/customer-management-api
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/erdemkeren/customer-management-api
- Owner: erdemkeren
- Created: 2023-06-03T19:12:34.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-03T19:15:19.000Z (about 2 years ago)
- Last Synced: 2025-01-17T19:44:23.326Z (5 months ago)
- Language: Go
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Customer Management System
This is a simple Customer Management System implemented in Go using the Gin web framework.
## Features
- List all customers
- Get a customer by ID
- Create a new customer
- Update an existing customer
- Delete a customer## Installation
1. Make sure you have Go installed. You can download it from the official website: [https://golang.org](https://golang.org)
2. Clone this repository:
```bash
git clone https://github.com/erdemkeren/customer-management-api.gitcd customer-management-api
go mod download
go run main.go
```3. The server will start running on http://localhost:8080.
4. You can use a tool like cURL or Postman to interact with the API. Postman collection is included in the repo.
## API Endpoints:
- List all customers: GET /customers
- Get a customer by ID: GET /customers/:id
- Create a new customer: POST /customers
- Update an existing customer: PUT /customers/:id
- Delete a customer: DELETE /customers/:id## Notes
- Uses `encoding/json` under the hood.
```
https://gin-gonic.com/docs/jsoniter/
```## License:
This project is licensed under the MIT License.