GET localhost:8000/
GET localhost:8000/read
POST localhost:8000/create
PUT localhost:8000/update
DELETE localhost:8000/delete
- MongoDB drivers
MONGOUSER=
MONGOPASSWORD=
DBNAME=
COLLNAME=
- Install the required dependencies.
go mod dowload
- Place the .env file in the root directory.
- Run locally.
# Runs at port 8000 by default
go build .\cmd\ && .\cmd.exe
- Use
curl
orpostman
or any other client to perform CRUD operations at the available routes.