Skip to content

Commit

Permalink
Update application setup for phoenix 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilherme Pasqualino committed Aug 24, 2017
1 parent a5c61cc commit a2bf615
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,11 @@

## Development Setup

### Docker

* Copy the docker-compose sample file
`cp docker-compose.yml.sample docker-compose.yml`
* Copy the docker-compose-up sample script
`cp ./scripts/docker-compose-up.sh.sample ./scripts/docker-compose-up.sh`
* Create and seed database, then start Phoenix
`docker-compose up`

You may change your local `docker-compose.yml` and `./scripts/docker-compose-up.sh` according to your preferences, if you want to use a local database for example.

### Local

* Install dependencies with `mix deps.get`
* Create and migrate your database with `mix ecto.create && mix ecto.migrate`
* Install Node.js dependencies with `npm install`
* Start Phoenix endpoint with `mix phoenix.server`
* Install Node.js dependencies with `cd assets; npm install; cd ..`
* Start Phoenix endpoint with `iex -S mix phx.server`

Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.

Ready to run in production? Please [check our deployment guides](http://www.phoenixframework.org/docs/deployment).

## Learn more

* 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

0 comments on commit a2bf615

Please sign in to comment.