A simple todolist application written in Go
- MySQL installed
- Go installed
- Clone this repo
git clone https://github.com/ichtrojan/go-todo.git- Change Directory
cd go-todo- Initiate
.envfile
cp .env.example .env- Modify
.envfile with your correct database credentials and desired Port
To run this application, execute:
go run main.goYou should be able to access this application at http://127.0.0.1:4040
NOTE
If you modified the port in the.envfile, you should access the application for the port you set
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.
