Go Todo List with Mongodb
Todo list project is a basic full-stack single page project. I am using Html, CSS, JavaScript for front-end and GO(golang) for backend and also using MongoDB(NoSql) for database. This project can save, update, delete todo and also delete completed todos. The main goal that How to connect Go and MongoDB and make a crud operation using them.
Demo
💻 Getting Started
- To get star with this package first of all you have to clone the project ⬇️
https://github.com/raihan2bd/go-todo-with-mongodb.git
- Then Make sure you have install Go (golang) version 1.1.0 or latest stable version.
- Then make sure you have install Mongodb on your local mechine if you want to use this project as localy.
- To install all the Go packages navigate the folder address on your terminal and enter the below command ⬇️
go get ./...
- After downloading the packages you should edit .env file and change MONGO_URI to your own MongoDB hosted link or Mongodb Atlas link. and also change you can chage the other variables to your own Database name and also the Collection name.
Usages
Note: Before enter the below command make sure you are in the right directory.
- To build the project as a single executable just run the below command. ⬇️
go build
- After finishing the avove instructions you can see the project in your local mechine by entering the below command ⬇️
go run main.go
- Then you can see this project live on your browser by this link http://localhost:9000 or your given the port nuber you set for the project.
👥 Author
👤 Abu Raihan
⭐️ Show your support
Thanks for visiting my repository. Give a ⭐️ if you like this project!
📝 License
This project is MIT licensed.
Contribution
Your suggestions will be more than appreciated. If you want to suggest anything for this project feel free to do that. 🙂