- GO
- MongoDB
- Clone the repo
- Make sure you have Go and MongoDB installed(Here i have used mongodb Atlas free tier)
- install all the pkg (
go mod tidy) - create a .env file in the root of project
- Past the below code in .env file and provide the Username and password.
Example
MONGOURI=mongodb+srv://USERNAME:PASSWORD@crm.rimlr8b.mongodb.net/?retryWrites=true&w=majority. - Run the below command in root of your project.
go run main.go - You can import the postman collection(
CRM.postman_collection.json) attached in this project to test the API endpoints. - Not using
io/ioutilIt looks like it's depricated.