Skip to content

vipul0506/goapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages