A simple todolist application written in Go
- MySQL installed
- Go installed
- Clone this repo
git clone https://github.com/arcenme/routine_todo- Change Directory
cd routine_todo- Initiate
.envfile
cp .env.example .env- Modify
.envfile with your correct database credentials
- gin-gonic/gin package for web framework
go get -u github.com/gin-gonic/gin - jinzhu/gorm package for ORM (Object Relational Mapping) library
go get -u github.com/jinzhu/gorm - go-sql-driver package to connect with MySql
go get -u github.com/go-sql-driver/mysql - joho/godotenv package to access the environment variable
go get -u github.com/joho/godotenv - go-playground/validator package to validate user input value
go get -u github.com/go-playground/validator/v10
To run this application, execute:
go run main.goYou should be able to access this application at http://127.0.0.1:4121
https://gowebexamples.com/
https://kotakode.com/blogs/5479/Membuat-crud-api-dengan-menggunakan-Go%2C-Gin-dan-Mysql
https://github.com/joho/godotenv
https://github.com/go-playground/validator/blob/master/_examples/translations/main.go
https://codepen.io/paulj05hua/pen/LYGLJYQ