Skip to content

itu-devops2022/itu-devops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MinitwitElixir

license Codacy Badge Docs to PDF

Why Elixir and Phoenix?

"Elixir and Phoenix are fast. For example, tests of Elixir’s performance show much better results during software testing services than those for Ruby, and Phoenix response times are measured in microseconds. Impressive, isn’t it? Speed matters a lot when we speak about user experience. It is great to see that the app reacts and responds quickly to all actions. Additionally, good performance helps to save energy and money." source

Via Docker

Install Docker and create an app image: docker build -f docker/app/Dockerfile -t app . Get it up and running via Docker Compose: docker-compose up

If you need to use postgres, seperately you can have it by running: docker build -f docker/db/Dockerfile -t db .

Manually

Follow this instruction to install Elixir on your computer. Install Postgres and create database called minitwit_elixir_dev on port 5432. Follow this instruction

To start your Phoenix server:

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.setup and make sure it is migrated using mix ecto.migrate
  • Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check deployment guides.

Learn more