go-todo-with-mongodb

command module
v0.0.0-...-a52af21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2022 License: MIT Imports: 4 Imported by: 0

README

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

Capture

💻 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. 🙂

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL