- Clone the repository
git clone https://github.com/aldiramdan/go-hospitalnative.git
- Install dependencies
go get -u ./...
# or
go mod tidy
- Add Env
# Storage CSV
PathDoctorCSV = "./databases/storages/csv/doctor.csv"
PathPatientCSV = "./databases/storages/csv/patient.csv"
PathDiseaseCSV = "./databases/storages/csv/disease.csv"
PathMedicineCSV = "./databases/storages/csv/medicine.csv"
PathHandlingCSV = "./databases/storages/csv/handling.csv"
# Path Migrate
PathMigrateUp = "./databases/db/migrations/202307280923_dump.up.sql"
PathMigrateDown = "./databases/db/migrations/202307280923_dump.down.sql"
# Set Database
MYSQL_USER =
MYSQL_PASSWORD =
MYSQL_HOST =
MYSQL_PORT =
MYSQL_DBNAME =
# App
PORT = Your Port App
BASE_URL = http://localhost:PORT //example
- Run the app
go run *.go migrate --up
- Run the app
go run *.go serve
🌟 You are all set!
- Golang: programming language