Elixir is awesome. And it has a vast awesome h4cc/awesome-elixir. This is a mirror of it where each library is marked with number of stars at Github.
Install Phoenix and Postgres database on Windows using chocolatey
- Run as Administrator the following:
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
- Install Elixir:
choco install elixir -version 1.9.1 -y
- Install Hex:
mix local.hex
- Install phoenix:
mix archive.install hex phx_new 1.4.10
- Install Nodejs:
choco install nodejs.install -y
and brunchnpm install -g brunch
- Install postgres database
choco install postgresql
- Set default password for postgres database: postgres (
ALTER USER Postgres WITH PASSWORD 'postgres'
)
Open cmd session, go to the root of project directory and do the following:
- Install dependencies with
mix deps.get
- Create, migrate and populate your database with
mix ecto.setup
(see database connection property in config/dev.exs and config/test.exs, priv/repo/seeds.exs) - Install Node.js dependencies with
npm install
- Run tests
mix test
- Start Phoenix endpoint with
mix phx.server
Now you can visit localhost:4000
from your browser.
Clean up development and test databases
- Run
mix ecto.drop
- Run in postgres database
drop database projects_from_git_test
;
List a bug and feature request: Issues
Code released under the GNU General Public License v3.0
- Official website: http://www.phoenixframework.org/
- Guides: http://phoenixframework.org/docs/overview
- Docs: https://hexdocs.pm/phoenix
- Mailing list: http://groups.google.com/group/phoenix-talk
- Source: https://github.com/phoenixframework/phoenix