# README
Shipreporting Platform
USER TOKEN GENERATION (Application server)
cd <shipflow_home>
pipenv shell
python manage drf_create_token <USERNAME>
ACTIVE SERVICES
LIVE DATA
- Moored
- Anchored
- Arrivals today
- Departures today
- Arrivals previsions
- Shipped goods
- Traffic list
- Shifting previsions
Systemd configuration
$ sudo cat > /etc/systemd/system/shipreporting-platform.service <<HEREDOC
[Unit]
Description=Shipreporting service middleware
Documentation=https://github.com/deeper-x/shipreporting-platform
After=network.target
[Service]
Type=simple
User=shipflow
Environment=GOPATH=/home/shipflow/go
WorkingDirectory=/home/shipflow/go/bin/
ExecStart=/home/shipflow/go/bin/shipreporting-platform
Restart=on-failure
[Install]
WantedBy=multi-user.target
HEREDOC
Install & Run instance
go get -d ./...
go build -o ${GOBIN}
sudo systemctl restart shipreporting-platform