Skip to content

kodustech/ezcoins-api

Repository files navigation

EzCoinsApi

Starting the API

To start the API using Docker:

  • Start your docker with sudo dockerd
  • Create a .env file based on .env.backup
  • Start the API with sudo docker-compose up
  • Get the CONTAINER ID of "container ezcoins-api_api_1" with sudo docker container ls
  • Run migrations with sudo docker container exec ID ./seeder.sh (replace the ID with CONTAINER ID that you get)
  • Go to EzCoinsWeb to start the front-end.

Phoenix server

CircleCI

To start your Phoenix server:

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.setup
  • Install Node.js dependencies with cd assets && npm install
  • 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