mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
842 B
842 B
BasicAuth + MySQL & Docker Example
⚡ Get Started
Download the folder.
Install (Docker)
Install Docker and execute the command below
$ docker-compose up --build
Install (Manually)
Run go build -mod=mod
or go run -mod=mod main.go
and read below.
MySQL
Environment variables:
MYSQL_USER=user_myapp
MYSQL_PASSWORD=dbpassword
MYSQL_HOST=localhost
MYSQL_DATABASE=myapp
Download the schema from migration/db.sql and execute it against your MySQL server instance.
username: admin
password: admin
username: iris
password: iris_password
The example does not contain code to add a user to the database, as this is out of the scope of this middleware. More features can be implemented by end-developers.