/realworld-phoenix

Exemplary real world application built with Elixir+Phoenix https://realworld.io

Primary LanguageElixirMIT LicenseMIT

RealWorld Example App

Elixir/Phoenix codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API.

This codebase was created to demonstrate a fully fledged fullstack application built with Elixir/Phoenix including CRUD operations, authentication, routing, pagination, and more.

We've gone to great lengths to adhere to the Elixir/Phoenix community styleguides & best practices.

For more information on how to this works with other frontends/backends, head over to the RealWorld repo.

Getting started

Prerequisites

Run app

To get started, run the following commands in your project folder

# Start Database
$ docker-compose up -d

# Install dependencies
$ mix deps.get

# Create and migrate your database
$ mix ecto.setup

# Start Phoenix endpoint with `mix phx.server`
$ mix phx.server

Test

$ mix test

or

$ mix phx.server

# open other terminal
$ cd run-api-test
$ APIURL=http://localhost:4000/api ./run-api-tests.sh