A system for keeping notes on tabletop RPG campaigns.
- Switch to the default postgres user:
sudo -u postgres -i
- Follow the instructions here for getting a basic Postgres DB setup, just make sure to name the database "rpgr_dev".
- To make tests work you'll need to create another database called "rpgr_test" as well.
mix ecto.setup
- Under
./config
adddev.secret.exs
andtest.secret.exs
file with the following contents:
use Mix.Config
config :rpgr, Rpgr.Repo,
adapter: Ecto.Adapters.Postgres,
username: "<ADD THE USERNAME YOU ARE USING FOR YOUR LOCAL POSTGRES INSTANCE HERE>",
password: "<ADD THE PASSWORD YOU SET UP HERE>",
database: "rpgr_<EITHER dev OR test TO MATCH THE FILE>",
hostname: "localhost",
pool_size: 10
- Add
GUARDIAN_ROLLDEX_SECRET_KEY
to yourzshrc
/bashrc
file (not sure if it needs to be something specific or not...)
- Run
mix deps.get
and allow it to install Hex when prompted - Navigate to
./priv/assets
and runnpm install
- From the root
rolldex
directory runmix phx.server
- In a different terminal, navigate to the
./priv/assets
directory and runnpm start
- Go to http://localhost:3000
- If this is your first time running it, go to the register page and sign up with your email (note: it must be approved).
If you aren't me you probably don't have authorization to deploy. So maybe just ask me to deploy.
- Install Python3 & Pip3
- Install the Gigalixir CLI
- Run
gigalixir login
- gigalixir git:remote <GIGALIXIR_APP_NAME>
git push gigalixir master
- Wait as it takes a long time to build