ZeusWPI / ZOUT

Het Zeus Overzicht met Uitgebreide Toestanden

Home Page:https://zout.zeus.gent

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Zout Elixir CI Coverage Status

Het Zeus Overzicht met Uitgebreide Toestanden ("Zeus Overview with Extensive)

The aim of this project is to provide an "uptime monitor" for Zeus projects. Why use an existing solution, when you can build it yourself?

Anyway, this application is rather simple. It has a list of projects, for which it pings some URL every X time, and saves the result in a big PostgreSQL table (we use TimescaleDB, so we can save all the things). We then show this with a simple UI.

Installing dev environment

Enlightened people can use the nix flake. Others need to search how to install:

  • Elixir 1.13
  • PostgreSQL 14
  • TimescaleDB extension for PostgresSQL
  • Node

Then, to start your Phoenix server:

  • Install asset dependencies with cd assets && npm install
  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.setup
  • Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Now you can visit localhost:4000 from your browser. Note that once the server runs, it will ping registered services every minute or so, so don't leave it running too long in the background.

Deployment

  1. SSH to the server
  2. Pull the repo
  3. Take the application down with podman-compose down.
  4. Build a new docker image with podman-compose build
  5. Start the application with podman-compose up -d

Learn more

About

Het Zeus Overzicht met Uitgebreide Toestanden

https://zout.zeus.gent

License:MIT License


Languages

Language:Elixir 71.5%Language:SCSS 13.0%Language:HTML 10.9%Language:Nix 1.9%Language:JavaScript 1.8%Language:Dockerfile 0.7%Language:Shell 0.1%Language:Batchfile 0.0%