Main API on customer VPS (user mgmt, creds, login, mail etc ...)
![]() |
há 1 mês atrás | |
---|---|---|
app | há 1 mês atrás | |
common | há 1 mês atrás | |
config | há 1 mês atrás | |
docs | há 1 mês atrás | |
errors | há 1 mês atrás | |
handlers | há 1 mês atrás | |
hook | há 1 mês atrás | |
jwtutils | há 1 mês atrás | |
logger | há 1 mês atrás | |
middleware | há 1 mês atrás | |
smtp | há 1 mês atrás | |
store | há 1 mês atrás | |
testing | há 1 mês atrás | |
validation | há 1 mês atrás | |
.dockerignore | há 1 mês atrás | |
.gitignore | há 1 mês atrás | |
Dockerfile | há 1 mês atrás | |
README.md | há 1 mês atrás | |
config.sample.yaml | há 1 mês atrás | |
go.mod | há 1 mês atrás | |
go.sum | há 1 mês atrás | |
main.go | há 1 mês atrás |
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