This is a to-do list application. The complete tutorial is published on my blog.
Server: Golang
Client: React, semantic-ui-react
Database: Local MongoDB
The offline version of application Get Shit Done
is hosted at
🔗 https://schadokar.github.io/go-to-do-app/
Offline to-do app instruction. here
- DB connection string, name and collection name moved to
.env
file as environment variable. Usinggithub.heygears.com/joho/godotenv
to read the environment variables. - feature/cloud-native-deployment provided by abdennour. Thank you @abdennour to dockerize it. His features supports both Docker and Kubernetes.
- golang https://golang.org/dl/
- gorilla/mux package for router
go get -u github.com/gorilla/mux
- mongo-driver package to connect with mongoDB
go get go.mongodb.org/mongo-driver
- github.com/joho/godotenv to access the environment variable.
From the Application directory
create-react-app client
- Make sure your mongoDB is started
- Create a
.env
file inside thego-server
and copy the keys from.env.example
and update the DB connection string. - From go-server directory, open a terminal and run
go run main.go
- From client directory,
a. install all the dependencies usingnpm install
b. start clientnpm start
Open application at http://localhost:3000
Enter a task and Enter
On completion of a task, click "done" Icon of the respective task card.
You'll notice on completion of task, card's bottom line color changed from yellow to green.
To undone a task, click on "undo" Icon,
You'll notice on completion of task, card's bottom line color changed from green to yellow.
To delete a task, click on "delete" Icon.
I am software engineer and love to write articles and tutorials on golang, blockchain, and nodejs.
Please checkout my other articles on 🔗 https://schadokar.dev 🎉
https://godoc.org/go.mongodb.org/mongo-driver/mongo
https://www.mongodb.com/blog/post/mongodb-go-driver-tutorial
https://vkt.sh/go-mongodb-driver-cookbook/
MIT License
Copyright (c) 2019 Shubham Chadokar