Coursefan is online course application built with Gofiber, Mysql, Ngrok, and Midtrans
Install all package dependencies and tidy
go get
go mod tidy
Create environtment files from example.env file
cp example.env local.env // Local
cp example.env test.env // Test
Migrate up Coursefan required tables and seed data to tables
go run . --mifgrate-up
go run . --seed
Migrate down Coursefan tables
go run . --mifgrate-down
Migrate fresh Coursefan tables
go run . --mifgrate-fresh
You can also deploy to docker container (Dockerizing/Containerizing)
By default, the Docker will expose port 8000, so change this within the Dockerfile if necessary. When ready, simply use the Dockerfile to build the image.
docker-compose build
docker-compose docker-compose.yaml up -d
Verify the deployment by navigating to your server address in your preferred browser.
127.0.0.1:8000
MIT && COURSEFAN
Open Source