https://github.com/saswatamcode/go-todo
https://github.com/saswatamcode/go-todo
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/saswatamcode/go-todo
- Owner: saswatamcode
- License: mit
- Created: 2020-04-28T08:10:15.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-02T17:17:12.000Z (almost 6 years ago)
- Last Synced: 2025-07-15T09:20:38.321Z (8 months ago)
- Language: Go
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://opensource.org/licenses/MIT)
[](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity)
[](https://GitHub.com/Naereen/ama)
[](https://code.visualstudio.com/)
[](https://GitHub.com/saswatamcode/go-todo/network/)
[](https://GitHub.com/saswatamcode/go-todo/stargazers/)
[](https://GitHub.com/saswatamcode/go-todo/issues/)
[](https://github.com/ellerbrock/open-source-badges/)
# Go ToDo
A simple todo list API written in Go. Uses mongodb.
# To Run
- Clone into repo
- Run `go get`
- Run your local/remote mongodb instance.
- Make sure to edit `connectionString` in `middleware.go` accordingly
- Run `go run main.go`
## Routes
- GET `/api/task/` - Get all tasks
- POST `/api/task/` - Save a task
- PUT `/api/task/{id}` - Complete a task
- PUT `/api/undoTask/{id}` - Undo a task
- DELETE `/api/deleteTask/{id}` - Delete a task
- DELETE `/api/deleteAllTask/` - Delete all tasks