Basic feature list:
We rely heavily on docker during development so I'll assume you have
First time only:
docker-compose run api mix ecto.setup # create and migrate database
Start the development server:
With this single command you'll have all servers running without having to install anything manually.
localhost:8000 to see the application running.
Docker on rescue again but now you have to manually pass a
MIX_ENV=test so our
docker-compose.yml uses a testing database.
MIX_ENV=test docker-compose run api mix test
And if you want to lint the code:
docker-compose run api mix credo --strict
Production envyronment is prepared to be hosted by Heroku with just one click on the purple button above.
On the first setup you can skip Oauth variables but if you want to the social auth work you'll need Google's, GitHub's and Facebook's OAUTH client id and secrect.
Indeed it takes some time to get them but it's worth it. Here's how:
In all those three a callback URL will be asked.
The format is:
PROVIDER can be either