Categorygithub.com/goquiz/api
modulepackage
0.0.0-20240129213158-47b86001dcc2
Repository: https://github.com/goquiz/api.git
Documentation: pkg.go.dev

# README

GoQuiz

A quiz API written in Go with 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 - This is my first solo project with Go and Fiber.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author