Skip to content

Commit

Permalink
Add setup steps to the README
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Oestrich authored Apr 21, 2021
1 parent bb95501 commit 91bfdd0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,26 @@ This is an example Phoenix application that uses [Stein](https://github.com/smar

You can also clone this repo as a starting point for a new project to get going quickly.

## Setup

Install PostgreSQL through your package manager of choice, or if you're on MacOS you can use [Postgres.app](https://postgresapp.com/). Make sure to have **PostgreSQL 12** or above.

Install Elixir, Erlang, and NodeJS through [asdf](https://asdf-vm.com/#/) using the versions supplied in `.tool-versions`. Once you have asdf, you can install them all with `asdf install` from the root of the project.

```bash
# Install Erlang/Elixir/NodeJS
asdf install
# Install yarn if required
npm install -g yarn

mix deps.get
mix ecto.setup
(cd assets && yarn install)
iex -S mix phx.server
```

Now you can visit [`localhost:4000`](http://localhost:4000) from your browser. See `priv/repo/seeds.exs` for seeded accounts.

## Using as a template

```bash
Expand Down

0 comments on commit 91bfdd0

Please sign in to comment.