Skip to content

rzmsv/golang-echo-mongodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

golang-echo-mongodb

⚙️ Requirements

  • Go 1.18+
  • MongoDB (local or cloud)
  • Git

🚀 Getting Started

1. Clone the repo

git clone https://github.com/rzmsv/golang-echo-mongodb.git

2. Run application

  1. Rename .env.example to .env and fill in the necessary configurations.
  2. For install dependencies run this command :
    go mod tidy
  3. For run app run this command :
    make start

3. APIs

🔥 Example API Endpoints

Method Endpoint Description
GET /api/v1/products List all products
POST /api/v1/products/new-products Create a product
GET /api/v1/products/:id Get product by ID
PATCH /api/v1/products/:id Update product by ID
DELETE /api/v1/products/:id Delete product

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors