A public API build with GORM and Gin Web Framework
git clone https://github.com/albugowy15/basketfood-api.git
This API using PostgreSQL database. You can create your own database on your local machine, then save all its credential to .env folder.
Create .env
file inside root directory, fill this variable with your own database credentials
DB_HOST=<your database host>
DB_PASSWORD=<your database password>
DB_USER=<your database user>
DB_NAME=<your database name>
DB_PORT=<your database port>
Install all dependencies or library used in this project with command
go get -u -v ./...
Run this project with command
go run main.go
You can see that your project is running at http://localhost:8080