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
- 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.