Categorygithub.com/sean-d/Booklyifywizzbangthingaroo
repositorypackage
0.0.0-20250109174359-4e314f1e7bcf
Repository: https://github.com/sean-d/booklyifywizzbangthingaroo.git
Documentation: pkg.go.dev

# 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

# README

Booklyifywizzbangthingaroo

Project demonstrating a basic rest api solution to better understand go. This project will leverage the gin framework, sqllite and will provide a user auth mechanism to protect certain endpoints. This will be accomplished via JWT.

Dependencies

  • Go
  • SQLite3
  • Bcrypt
    • go get -u golang.org/x/crypto/
  • Gin
    • go get -u github.com/gin-gonic/gin
  • Golang-JWT
    • go get -u github.com/golang-jwt/jwt/v5
  • SQLite
    • go get github.com/glebarez/go-sqlite

Plan

Create an "events booking" API with the following:

ActionEndpointDescriptionAuth Required
GET/eventsGet a list of available eventsNo
GET/events/Get a specific event by idNo
POST/eventsCreate a new bookable eventYes
PUT/events/Update an eventYes - only by creator
DELETE/events/Delete an eventYes - only by creator
POST/signupCreate a new userNo
POST/loginAuthenticate a userNo - auth will leverage JWT
POST/events//registerRegister user for an eventYes
DELETE/events//registerCancel an event registrationYes