Skip to content

kbakdev/go-crud-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ Deployment

Set enviromental variables:

export DBUSER=user
export DBPASS=password

Initialize the database:

mysql> CREATE TABLE `Employee` (
    -> `id` int(6) unsigned NOT NULL AUTO_INCREMENT,
    -> `name` varchar(30) NOT NULL,
    -> `city` varchar(30) NOT NULL,
    -> PRIMARY KEY (`id`));

Run the following command:

go run main.go

Load the following URL: http://localhost:8080

About

Golang CRUD using MySQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages