Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gauravtiwari/vuejs_on_phoenix
Explore Vuejs with Phoenix (same app as vuejs_on_rails)
https://github.com/gauravtiwari/vuejs_on_phoenix
Last synced: 18 days ago
JSON representation
Explore Vuejs with Phoenix (same app as vuejs_on_rails)
- Host: GitHub
- URL: https://github.com/gauravtiwari/vuejs_on_phoenix
- Owner: gauravtiwari
- Created: 2016-04-30T07:35:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-17T09:34:36.000Z (over 8 years ago)
- Last Synced: 2024-11-25T12:42:07.132Z (28 days ago)
- Language: Elixir
- Homepage: https://vuejs-phoenix.herokuapp.com
- Size: 64.5 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vuejs On Phoenix
A port of [vuejs_on_rails](https://github.com/gauravtiwari/vuejs_on_rails) in Phoenix to explore the workflow. Overall, apart from syntactical differences, very little has changed. Checkout the repo, mainly: `/web/` folder and `/lib/migrations`
To start your Phoenix app:
* 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`Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.
## Run distributed nodes locally (out of the box)
Run each command in two separate terminal tabs:
```bash
# First node
PORT=4001 elixir --name [email protected] --erl "-config sys.config" -S mix phoenix.server
# Second node
elixir --name [email protected] --erl "-config sys.config" -S mix phoenix.server
```Now, if any node goes down (just ctrl+c twice) you will see in the log the other app gets started automatically after timeout.