All checks were successful
Build Backend / Build Docker Image (push) Successful in 5m3s
|
||
---|---|---|
.. | ||
cmd | ||
config | ||
ent | ||
internal | ||
pkg | ||
scripts | ||
.gitignore | ||
docker-compose.yml | ||
Dockerfile | ||
go.mod | ||
go.sum | ||
LICENSE.md | ||
main.go | ||
README.md |
Tss.Rocks Backend
Note
This project is still in early development, contents and functionality is incomplete.
Moderninzing the experience of TSS website.
Getting Started
Prerequisites
- Go 1.23 or higher
- SQLite 3
Installation
-
Clone the repository
-
Install dependencies:
go mod download
- Copy the example config file and modify it:
cp config/config.example.yaml config/config.yaml
- Update the configuration in
config/config.yaml
with your settings.
Running the Server
go run cmd/server/main.go
The server will start on http://localhost:8080
by default.
API Documentation
Authentication
All protected endpoints require a JWT token in the Authorization header:
Authorization: Bearer <token>
Endpoints
Checkout api/schemas
for the OpenAPI specification.
To bundle the OpenAPI files into a single YAML file, run:
./scripts/bundle-openapi.sh # For Bash
./scripts/bundle-openapi.ps1 # For PowerShell
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
License
This project is licensed under the AGPL v3.0 - see the LICENSE file for details.