- Clone the repository
git clone https://github.com/aldiramdan/go-lectronic.git
- Install dependencies
go get -u ./...
# or
go mod tidy
- Add Env
# Database
DB_HOST = Your DB User
DB_PORT = Your DB Port
DB_HOST = Your DB Host
DB_NAME = Your DB Name
DB_PASS = Your DB Password
# App
PORT = Your Port App
BASE_URL = http://localhost:PORT //example
- Run the app
go run *.go serve
- Database Migration and Seeder
# Migration
go run *.go migrate --up //db migration up
# or
go run *.go migrate --down //db migration down
# Seeder
go run *.go seeder --up //db seeder up
# or
go run *.go seeder --down /db seeder down
🌟 You are all set!
- Golang: programming language
- gorilla/mux: for handle http request
- Postgres: for DBMS