Skip to content

lrdiv/fleet-elixir

Repository files navigation

Fleet

Configuration:

  • Create a docker/pgdata directory to store docker postgres data
  • Add Guardian config with secret key to config/dev.secret.exs
config :fleet, Fleet.Accounts.Guardian,
       issuer: "fleet",
       secret_key: "Secret key. You can use `mix guardian.gen.secret` to get one"

To start docker-compose environment (recommended):

  • Run docker-compose up --build
  • Your database will be created and seeded with a users table
  • Database will be accessible on port 54320
  • Run any future mix commands like so:
docker-compose run api mix ecto.migrate

To start your Phoenix server without docker:

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.setup
  • Start Phoenix endpoint with mix phx.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

Learn more

About

A starter Phoenix/Elixir app with docker compose, JSONAPI, and authentication configured

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages