-
Enter the project directory:
$ cd hospital
-
Create and migrate the database:
$ mix ecto.create && mix ecto.migrate
-
Run the seed file:
$ mix run priv/repo/seeds.exs
Note: The username/password and medic auth-token will be displayed at the end, they are necessary later.
-
Run application:
$ mix phoenix.server
-
View the application at localhost:4000
-
Enter the project directory:
$ cd medic
-
Build the executable:
$ mix escript.build
-
Run the executable with the auth-token from earlier and development endpoints:
$ ./medic --auth-token="medic-auth-token" \ --update-url="http://localhost:4000/api/health_checks" \ --report-url="http://localhost:4000/api/reports"