Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ichtrojan/go-todo
A simple todo list application in Golang
https://github.com/ichtrojan/go-todo
golang mysql todo todolist
Last synced: 4 days ago
JSON representation
A simple todo list application in Golang
- Host: GitHub
- URL: https://github.com/ichtrojan/go-todo
- Owner: ichtrojan
- Created: 2019-11-27T23:10:13.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-14T13:34:42.000Z (over 1 year ago)
- Last Synced: 2024-12-18T15:07:27.673Z (11 days ago)
- Topics: golang, mysql, todo, todolist
- Language: Go
- Homepage:
- Size: 12.7 KB
- Stars: 91
- Watchers: 3
- Forks: 40
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go Todo
![hero](https://res.cloudinary.com/ichtrojan/image/upload/v1574958373/Screenshot_2019-11-28_at_17.22.25_gyegdr.png)
## Introduction
A simple todolist application written in Go
## Requirements
* MySQL installed
* Go installed## Installation
* Clone this repo
```bash
git clone https://github.com/ichtrojan/go-todo.git
```* Change Directory
```bash
cd go-todo
```* Initiate `.env` file
```bash
cp .env.example .env
```* Modify `.env` file with your correct database credentials and desired Port
## Usage
To run this application, execute:
```bash
go run main.go
```You should be able to access this application at `http://127.0.0.1:4040`
>**NOTE**
>If you modified the port in the `.env` file, you should access the application for the port you set## Conclusion
This Project is an example to teach CRUD using the default `database/sql` package and how to serve html templates properly.
If you have anything to add to this, please send in a PR as it will no longer be actively maintained by [me](https://github.com/ichtrojan).