The easist way to host this yourself is with docker compose.
Note
As this is still in development, no docker images have been published yet. You will have to build the image youself.
Example Docker-Compose.yml
version: '3.1'
services:
isitonline:
image: isitonline
environment:
POSTGRES_PASSWORD: example
ports:
- 8080:8080
volumes:
- db_data:/db
volumes:
db_data:
Database
- Install the sqlx cli cli with
cargo install sqlx-cli
- Create a
DATABASE_URL
enviroment variable with the valuesqlite:db/data.db
- Create the database with
sqlx database create
- Set it up with the tables using
sqlx migrate run
Running
After the setup you can run the app with cargo r
and it should appear at http://127.0.0.1:8080. You could also use the dockerfile for development if you'd rather not install extra cli's or just prefer docker, however the included image doesn't cache dependencies yet so it's very slow.
Useful Tools
- DB Browser for SQLite has been really useful durning development for viewing the database in an easy to use gui, you can download it from their GitHub releases
A lot of the design is based of this design by Fireart Studio.