Skip to content

Repository files navigation

Golang Parking App UseCase

A simple use case parking app written with golang this repo still work in progress, so i'll put in the board to track this current repo progress

Usecase

usecase parking app

Preparation

How to run it ?

  • first you need a mysql docker container, all you have to do is compose up the mysql then it will run at port 4444, open your terminal and run
docker compose up

in the root of the project

  • copy the .env-example to .env, the env is exactly same as docker mysql environment
  • run migration in your machine, if you use docker compose, you just need to run this command
migrate -path db/migrations -database "mysql://root:root@tcp(127.0.0.1:4444)/parkingdb?query" up

then run

 go run main.go

thats it have a nice code 😉

Honorable Mention

About

a simple use case of parking db app written in golang

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages