Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amalmadhu06/mariadb-fiber-go
Web server built with Go Programming Language, Fiber framework and MariaDB.
https://github.com/amalmadhu06/mariadb-fiber-go
go golang mariadb web-server
Last synced: about 1 month ago
JSON representation
Web server built with Go Programming Language, Fiber framework and MariaDB.
- Host: GitHub
- URL: https://github.com/amalmadhu06/mariadb-fiber-go
- Owner: amalmadhu06
- Created: 2023-07-17T07:49:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-30T04:56:31.000Z (9 months ago)
- Last Synced: 2024-11-07T12:52:15.505Z (3 months ago)
- Topics: go, golang, mariadb, web-server
- Language: Go
- Homepage:
- Size: 146 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Web server with MariaDB and GoFiber
## Test Locally
### 1. Clone Repository to local machine
```shell
git clone https://github.com/amalmadhu06/mariadb-fiber-go.git
```
### 2. Change directory
```shell
cd mariadb-fiber-go
```
### 3. Download dependencies
```shell
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
```shell
make run
```
### Endpoints
```shell
curl -X GET http://127.0.0.1:3000/offer/us
```
```shell
curl -X GET http://127.0.0.1:3000/offer/fr
```
```shell
curl -X GET http://127.0.0.1:3000/offer/ca
```
```shell
curl -X GET http://127.0.0.1:3000/offer/br
```