A lightweight RESTful API server built with Go, using the Chi HTTP router. This project demonstrates modular Go development, routing, and basic API patterns.
Vipul.Malik [vipulmalik0506@gmail.com]
- RESTful API endpoints
- Modular code structure
- Lightweight HTTP routing with Chi
- Easy dependency management with Go modules
- Go 1.18 or higher
git clone https://github.com/vipulmalik0506/goapi.git
cd goapigo mod tidyThis will install Go modules by looking at go.mod.
go clean -modcache
go mod tidygo run cmd/api/main.goThe server will start on the default port (e.g., localhost:8080). You can configure the port in your code.
GET /account/coins- Lists coins- Eg: http://localhost:8000/account/coins?username=marie [Postman-call]
- ...add more endpoints as needed...
- Chi: Lightweight HTTP router for Go.
Chi package is a lightweight HTTP router for Go. It provides fast routing, middleware support, and is ideal for building RESTful APIs.
This project is just to learn Go APIs
No License