mikeotoole / peap

PEAP - Phoenix Elixir Angular Postgres

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PEAP - Phoenix Elixir Angular Postgres

A poc implementation of phoenix with angular2, webpack, graphql, jwt, typescript, scss, postgres, and a few other things.

Requires elixir, node and postgres, e.g.

brew install elixir
brew install n
brew install postgres

To start the server

postgres -D /usr/local/var/postgres/
mix deps.get
npm install
mix ecto.setup
mix phoenix.server

The seed user is demo@example.com and password is foo.

Now you can visit localhost:4000 from your browser.

Review the configs in /config, including secret_key_base in config.exs.

Run the tests

npm test

Features

  • phoenixframework
  • webpack with watcher
  • managed static assets with watcher
  • a common module and app module
  • global and encapsulated styles
  • priv/static is deleted before each build

Static assets are in web/static/root. These are copied over to priv/static and changes are watched.

Put everything related to webpack in web/static/modules. The webpack bundles are placed in priv/static/bundles.

WARNING: all files in priv/static are deleted with each build. Place everything you need in the appropriate web/static directory.

About

PEAP - Phoenix Elixir Angular Postgres

License:MIT License


Languages

Language:Elixir 60.5%Language:TypeScript 29.8%Language:JavaScript 5.2%Language:Shell 1.8%Language:CSS 1.7%Language:HTML 1.0%