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