Situation Room is a self-hosted website "status checker" much along the lines of pingdom.com or similar services. Initially, the Situation Room will support simple uptime status checks, but the ability to add in additional statu type checks like load times, page load sizes, etc... will be added.
The repo is currently in the process of being converted into elixir. Updates will soon follow.
- asdf version manager
- Install the required elixir/erlang versions for this repo with
asdf install <tool> <version>
. - See
.tool-versions
for the needed versions of each tool. - See the asdf docs for more info.
- Install the required elixir/erlang versions for this repo with
- Docker
- Needed to run the local postgres db
- direnv to manage env variables.
- This is what a
.envrc
file is generally consumed by. - a regular
.env
file will not work with this project
- This is what a
- Make sure that the necessary tools versions are active for this project. You can use asdf for this if needed.
- run
cp sample.envrc .envrc
- Initialize the postgres database by running:
docker-compose up -d
. - Install the dependencies:
mix deps.get
- Create the database for migrations:
mix ecto.create
- Run the migrations:
mix ecto.migrate
- Test everything:
mix test
- Start the elixir HTTP server:
mix run --no-halt