EventAPI is a Go-based web server that generates random characters for different themed events like Christmas, Halloween, and Easter. It's designed to be lightweight, efficient, and easy to use.
main.go
: Sets up the server and routes.handlers.go
: Contains handlers for different events to generate characters.character.go
: Defines theCharacter
struct and character generation logic.utils.go
: Includes utility functions like CORS middleware and file reading.go.mod
: Module file for Go dependencies.assets
: Directory containing themed assets for character generation.
- Clone the repository.
- Navigate to the project directory.
- Run
go build
and./eventapi
to start the server. - Access the server at
http://localhost:8081
.
/christmas/
: Generates Christmas themed characters. 🎄/halloween/
: Generates Halloween themed characters. 🎃/easter/
: Generates Easter themed characters. 🐰
- Go (version 1.21.4)
- For more details on Go: Official Go Documentation
Contributions, issues, and feature requests are welcome!
Give a ⭐️ if this project helped you!
💡 Remember to check out the assets
directory for each event to customize character data! 🎅👻🐇