https://github.com/goquiz/api
The application's backend API written with GoFiber
https://github.com/goquiz/api
api gofiber golang open-source quiz
Last synced: 6 months ago
JSON representation
The application's backend API written with GoFiber
- Host: GitHub
- URL: https://github.com/goquiz/api
- Owner: goquiz
- Created: 2023-12-03T14:16:51.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-07T12:28:39.000Z (over 2 years ago)
- Last Synced: 2026-01-14T15:45:45.505Z (6 months ago)
- Topics: api, gofiber, golang, open-source, quiz
- Language: Go
- Homepage: https://quizzes.lol
- Size: 15.6 MB
- Stars: 12
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GoQuiz
A quiz `API` written in `Go` with
[Fiber](https://github.com/gofiber/fiber).
It is completely open-source, so feel free to download
and build a quiz using this project. Just give credit
to me, please – being nice is greatly appreciated. ;)
## How it operates?
To begin, let me illustrate the folder structure I
used in developing this application.
```
📦 GoQuiz project
📂 app
📂 handlers
📂 repository
📂 requests
📂 database
📂 models
📂 http
📂 helpers
📂 routes
📜 .env
📜 main.go
```
I established a "handlers" folder where I defined
various structs and their associated methods. Subsequently,
I registered these handlers in the `routes/api.go` file. Therefore,
when a request is sent to the server, Fiber autonomously
handles the process, invokes the designated handler method,
and returns the corresponding response. That's all.
Middleware, authentication, and session management are defined
in the `http` folder.
For the database, I am utilizing the `gorm` package
with a MySQL database.
### Credits
[Martin Binder](https://mrtn.vip) - This is my first solo project with Go and Fiber.