Until releases are made, we need to use the
Start with fetching the latest sources:
git clone git@framagit.org:tcit/storia.git && cd storia
You need to have a postgresql user, and a postgresql database. Defaults credentials for the development environment are:
- user: elixir
- password: elixir
- database: storia_dev
app
Install front-end dependencies
cd js && npm install
Start dev server
npm start
Visit http://localhost:8080
api
Install server
mix deps.get
mix deps.compile
Create database tables
mix ecto.migrate
Launching dev server
mix phx.server
Now open your browser at http://0.0.0.0:4000
Launching production server can be made with
MIX_ENV=prod PORT=4001 elixir --detached -S mix do compile, phx.server
You can change the port on which elixir is running on, but you'll probably want to setup a reverse proxy to handle things properly.
Docker
Install and run a postgres server
docker pull postgres
docker run --name elixir_pg -e POSTGRES_USER=elixir -e POSTGRES_PASSWORD=elixir -e POSTGRES_DB=storia_dev -p 5432:5432 -d postgres