Skip to content

aldiramdan/go-hospital

Repository files navigation

Hospital net/http Native Api

Golang Api net/http Native

🛠️ Installation Steps

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

🌟 You are all set!

💻 Built with

  • Golang: programming language

Releases

No releases published

Packages

No packages published