Phoenix Webpack and Distillery demo application
To start UserList app:
- Install dependencies with
mix deps.get - Install NPM dependencies with
npm install - Create and migrate your database with
mix ecto.create && mix ecto.migrate - Start Phoenix endpoint with
mix phoenix.server
Now you can visit localhost:4000 from your browser.
Population of this list is connected to each commit, please, see commit history.
mix phoenix.new userlist --no-brunchcd userlist/mix ecto.create && mix ecto.migratemix phoenix.gen.model User users name active:booleanmix ecto.migratemix run priv/repo/seeds.exsnpm initnpm install --save-dev webpacknpm install --save-dev copy-webpack-pluginmix deps.getmix release.initnpm install --save-dev babel-loader babel-core babel-preset-es2015npm run deployMIX_ENV=prod mix phoenix.digestMIX_ENV=prod mix releasePORT=8080 _build/prod/rel/userlist/bin/userlist consoleMIX_ENV=prod mix release_build/prod/rel/userlist/bin/userlist command 'Elixir.Release.Tasks' migratePORT=8080 _build/prod/rel/userlist/bin/userlist consoleMIX_ENV=prod mix releasePORT=8080 _build/prod/rel/userlist/bin/userlist foregroundsudo cp userlist.service /etc/systemd/systemsudo systemctl enable userlist.servicesudo systemctl start userlistsystemctl -l status userlistsudo systemctl stop userlistsudo systemctl disable userlist