Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Angarsk8/phoenix-vue-demo
Basic app developed with Phoenix and Vue 2.0, including authentication.
https://github.com/Angarsk8/phoenix-vue-demo
ecmascript2015 elixir-lang phoenix-framework vuejs2
Last synced: about 1 month ago
JSON representation
Basic app developed with Phoenix and Vue 2.0, including authentication.
- Host: GitHub
- URL: https://github.com/Angarsk8/phoenix-vue-demo
- Owner: Angarsk8
- Created: 2016-12-05T01:47:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-20T20:05:32.000Z (about 7 years ago)
- Last Synced: 2024-03-21T15:08:30.224Z (3 months ago)
- Topics: ecmascript2015, elixir-lang, phoenix-framework, vuejs2
- Language: JavaScript
- Homepage: https://phoenix-vue-auth.herokuapp.com
- Size: 604 KB
- Stars: 77
- Watchers: 6
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Lists
- awesome-vue - **App example with JWT Authentication** - vue-auth.herokuapp.com)) (Resources / Examples)
- awesome-vue - **App example with JWT Authentication** ★70 - vue-auth.herokuapp.com)) by [@Angarsk8](https://github.com/Angarsk8) (Awesome Vue.js [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg) ★101652](https://github.com/sindresorhus/awesome) / Examples)
README
# Basic Authentication Example Built With Phoenix, Vue 2.0 and Vue Router 2.0
****Sorry for not having the commit history of this project, at the beginning I didn't realize that I was going to upload it to Github***
To start this application locally:
* Make sure you have installed _Elixir_, _Erlang_, _Phoenix_, _Node_ and _PostgreSQL_
* Install the Mix dependencies: `$ cd server/ && mix deps.get`
* Create, migrate and seed the development database: `$ mix ecto.setup`
* Start the Phoenix Server: `$ mix phoenix.server` or `$ iex -S mix phoenix.server`
* Install the NPM packages `$ cd ../client/ && npm install`
* Start the Express development server: `$ npm run dev`To build the Vue.js project for production:
* In the client directory, run `$ npm run build` (this will execute the `build/build.js` script and will copy the produced files to the `server/priv/js/` and `server/priv/css/` directories)To deploy this application on Heroku:
* Follow this [guide](http://www.phoenixframework.org/docs/heroku) in the Phoenix website.Next Steps:
* Deployment using Docker and Docker-Compose.