Simple project using Elm, Phoenix, GraphQL and PostgreSQL
Clone or download
Pull request Compare This branch is 10 commits behind carleryd:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
config
lib
priv
test
.gitignore
.tool-versions
README.md
mix.exs
mix.lock

README.md

Elm hipster stack!

  • Elm(version 0.18)
  • Phoenix(version 1.3)
  • GraphQL
  • PostgreSQL

About

This is a simple application where posts with a title and a body can be created and removed.

Running the app:

Apart from cloning the repository, you will have to install any missing tools such as npm, mix, PostgreSQL, etc.

To start the app run the following:

  • Install Mix dependencies with mix deps.get
  • Install Node packages. Go to assets and run npm install or yarn install
  • Install Elm packages. Go to assets/elm and run elm package install, then go back to project root.
  • Run PostgreSQL in the terminal with psql and run CREATE USER postgres SUPERUSER;
  • Create PostgreSQL database app_dev with Phoenix Ecto, run mix ecto.create
  • Create required tables mix ecto.migrate
  • Optionally populate tables with mix run priv/repo/seeds.exs
  • Start Phoenix endpoint with mix phx.server

App is now running on localhost:4000 Explore the GraphQL database using its graphical interface at localhost:4000/graphiql

Some of the used frameworks

Learn more