Simple CRUD app with mysql
Run app with docker
git clone https://github.com/danangkonang/go-crud-mysql.git
cd go-crud-mysql
docker-compose up --build -d
Run app on local
setup your database enviroment in .env file
git clone https://github.com/danangkonang/go-crud-mysql.git
cd go-crud-mysql
go run main.go
- Download crud.postman_collection.json
sql table auto generate after app run
CREATE TABLE IF NOT EXISTS users (
user_id int NOT NULL AUTO_INCREMENT,
name varchar(255) NOT NULL,
email varchar(255) NOT NULL,
phone varchar(255) NOT NULL,
PRIMARY KEY (user_id)
) engine=InnoDB charset=UTF8;