Skip to content

aldiramdan/go-lectronic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Letronic App

Golang Restfull Api With Gorilla/Mux & GORM

🛠️ Installation Steps

  1. Clone the repository
git clone https://github.com/aldiramdan/go-lectronic.git
  1. Install dependencies
go get -u ./...
# or
go mod tidy
  1. 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
  1. Run the app
go run *.go serve
  1. 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!

💻 Built with