flightlog.org is a great site. This project is a modern implementation of that webpage with a similar data-model, written in golang
Here we use a layered model in order to ensure security. The backend API will basically have two layers
- Angular Cli (coming soon)
- Presentation-layer
- Business (UseCase)
- Datalayer
- golang
- git
- dep (golang package manager)
Please also set the GOHOME environment variable should be $HOME/go
go get github.com/klyngen/flightlogger
followed bydep ensure
.- Generate certificates
openssl genrsa -out fly.rsa 2048
openssl rsa -in app.rsa -pubout > fly.rsa.pub
- Migrate the database...
- Add configuraion preferrably to $HOME/.flightlogger/flightlog.yaml
serverport: "61225"
publicKeyPath: "$HOME/.flightlogger/fly.rsa.pub"
privateKeyPath: "$HOME/.flightlogger/fly.rsa"
# Expiration in seconds
tokenexpiration: 3600
database:
hostname: "canbeempty"
password: "dbpassword"
port: "canbeempty"
username: "dbuser"
database: "Flightlog"
go run main.go
All help is appreciated. Send me an email if you wonder how you can contribute or just make a PR.
- Ensure that the API is easy to use. Please reed this guide
- Write tests the application is layered for a reason....
- Be nice :)
Check out our board on taiga.io
Flightlogger uses Attribute-Based-Access-Control to control access to resources. Resources are defined in the database.