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: 9 months 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 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-14T13:34:42.000Z (over 2 years ago)
- Last Synced: 2025-04-09T23:17:43.317Z (9 months ago)
- Topics: golang, mysql, todo, todolist
- Language: Go
- Homepage:
- Size: 12.7 KB
- Stars: 98
- Watchers: 2
- Forks: 54
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go Todo

## 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).