The code behind app.papercups.io
To start your server:
- Install dependencies with
mix deps.get
- Create and migrate your database with
mix ecto.setup
- Start the server with
mix phx.server
This will automatically start up the React frontend in watch mode on localhost:3000
, with the API running on localhost:4000
.
The frontend code will start up automatically when you run mix phx.server
, but for more information see: assets/README.md
Set the environment variables in the .env.example
file.
At the moment we only support Mailgun — other messaging channels are coming soon!
Create a PostgreSQL test database named: chat_api_test
, and run:
mix test
We currently use Heroku for deployments:
git push heroku master
Note: Make sure you are running this inside of ChatApi otherwise it'll trigger on UI changes
./scripts/compile_watch.sh
- Official website: https://www.phoenixframework.org/
- Guides: https://hexdocs.pm/phoenix/overview.html
- Docs: https://hexdocs.pm/phoenix
- Forum: https://elixirforum.com/c/phoenix-forum
- Source: https://github.com/phoenixframework/phoenix