To start your Phoenix server:
- 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 withiex -S mix phx.server
Or you can use docker:
docker compose build
docker compose exec -it siwapp mix siwapp.demo # if you want demo data
docker compose exec -it siwapp mix siwapp.register '[email protected]' '<password>' # if you have restored a database dump
docker compose up
Now you can visit localhost:4010
from your browser.
To create a new user you can use mix siwapp.register <[email protected]> <your password>
or
using docker docker compose exec -it siwapp mix siwapp.register <[email protected]> <your password>
.
Ready to run in production? Please check our deployment guides.
Siwapp has a graphQL API.
You can browse the api docs here.