Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 1.3 KB

File metadata and controls

60 lines (44 loc) · 1.3 KB

GoAPI

A lightweight RESTful API server built with Go, using the Chi HTTP router. This project demonstrates modular Go development, routing, and basic API patterns.

Author

Vipul.Malik [vipulmalik0506@gmail.com]

Features

  • RESTful API endpoints
  • Modular code structure
  • Lightweight HTTP routing with Chi
  • Easy dependency management with Go modules

Requirements

  • Go 1.18 or higher

Getting Started

Clone the repository

git clone https://github.com/vipulmalik0506/goapi.git
cd goapi

Install Modules

go mod tidy

This will install Go modules by looking at go.mod.

Clean Cache and Reinstall

go clean -modcache
go mod tidy

Running the API Server

go run cmd/api/main.go

The server will start on the default port (e.g., localhost:8080). You can configure the port in your code.

API Endpoints

Dependencies

  • Chi: Lightweight HTTP router for Go.

Chi

Chi package is a lightweight HTTP router for Go. It provides fast routing, middleware support, and is ideal for building RESTful APIs.

Contributing

This project is just to learn Go APIs

License

No License