Main API on customer VPS (user mgmt, creds, login, mail etc ...)
![]() |
1 month ago | |
---|---|---|
app | 1 month ago | |
common | 1 month ago | |
config | 1 month ago | |
docs | 1 month ago | |
errors | 1 month ago | |
handlers | 1 month ago | |
hook | 1 month ago | |
jwtutils | 1 month ago | |
logger | 1 month ago | |
middleware | 1 month ago | |
smtp | 1 month ago | |
store | 1 month ago | |
testing | 1 month ago | |
validation | 1 month ago | |
.dockerignore | 1 month ago | |
.gitignore | 1 month ago | |
Dockerfile | 1 month ago | |
README.md | 1 month ago | |
config.sample.yaml | 1 month ago | |
go.mod | 1 month ago | |
go.sum | 1 month ago | |
main.go | 1 month ago |
A Go-based backend service for workspace and user management with built-in authentication.
.
├── app/ # Core application components
│ ├── server.go # HTTP server setup
│ ├── routes.go # API route definitions
│ └── middleware.go # HTTP middlewares
├── common/ # Shared models and utilities
├── config/ # Configuration management
├── handlers/ # HTTP request handlers
├── hook/ # Webhook integration
├── jwtutils/ # JWT authentication
├── smtp/ # Email service
│ └── templates/ # Email templates
├── store/ # Database operations
└── main.go # Application entry point
Clone the repository:
git clone git@git.linuxforward.com:byom/byom-core.git
cd byom-core
Install dependencies:
go mod download
Copy and configure settings:
cp config.sample.yaml config.yaml
Run the server:
go run main.go serve
The application is configured via config.yaml. Key sections:
server:
listening_port: 8443
tls:
enabled: false
database:
path: "./data/app.db"
log:
level: "info"
jwt:
jwt_secret: "your-jwt-secret"
smtp:
host: "smtp.example.com"
oauth2:
client_id: "your-client-id"
See config.sample.yaml for a complete example.
Run server:
go run main.go serve --config config.yaml
Show version:
go run main.go version
All routes are prefixed with /api/v1/core
Protected routes require JWT authentication via the Authorization header.
Fork the repository Create your feature branch Commit your changes Push to the branch Create a Pull Request
Proprietary - All rights reserved