Skip to content

ashutoshbr/GoCRUD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoCRUD 🐀

A minimal project to perform CRUD operations on mongoDB.

Available routes 🚀

GET       localhost:8000/
GET       localhost:8000/read
POST      localhost:8000/create
PUT       localhost:8000/update
DELETE    localhost:8000/delete

Dependencies 🔧

  • MongoDB drivers

.env 🔐

MONGOUSER=
MONGOPASSWORD=
DBNAME=
COLLNAME=

Execution ⚙️

  1. Install the required dependencies.
go mod dowload
  1. Place the .env file in the root directory.
  2. Run locally.
# Runs at port 8000 by default
go build .\cmd\ && .\cmd.exe
  1. Use curl or postman or any other client to perform CRUD operations at the available routes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages