Skip to content

Latest commit

 

History

History
38 lines (35 loc) · 807 Bytes

README.md

File metadata and controls

38 lines (35 loc) · 807 Bytes

Web server with MariaDB and GoFiber

Test Locally

1. Clone Repository to local machine

git clone https://github.com/amalmadhu06/mariadb-fiber-go.git

2. Change directory

cd mariadb-fiber-go

3. Download dependencies

go mod download

4. Set up a MariaDB database

Set up a MariaDB database and add schema and data in the pkg/db/sql folder

5. Configure .env

Rename the .env.example to dev.env and update the content according to your database set up.

6. Run the server locally

make run 

Endpoints

curl -X GET http://127.0.0.1:3000/offer/us
curl -X GET http://127.0.0.1:3000/offer/fr
curl -X GET http://127.0.0.1:3000/offer/ca
curl -X GET http://127.0.0.1:3000/offer/br