Pietrucci-Blacher / apigolang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Api Golang

Clone

git clone git@github.com:Pietrucci-Blacher/apigolang

Init the database

run this command

docker compose up -d

and import this file go_api.sql in adminer

Dotenv

create a .env file and this example

HOST=localhost
PORT=8081
DB_DRIVER=mysql
DB_USER=root
DB_PASSWORD=azerty
DB_HOST=localhost
DB_PORT=3306
DB_NAME=go_api
JWT_SECRET=mysecret

Run Golang api

go run main.go

Link

About


Languages

Language:Go 96.7%Language:HTML 3.3%