Giter Site home page Giter Site logo

angarsk8 / phoenix-vue-demo Goto Github PK

View Code? Open in Web Editor NEW
77.0 6.0 7.0 619 KB

Basic app developed with Phoenix and Vue 2.0, including authentication.

Home Page: https://phoenix-vue-auth.herokuapp.com

JavaScript 58.88% HTML 0.89% Vue 7.52% Elixir 32.71%
elixir-lang phoenix-framework ecmascript2015 vuejs2

phoenix-vue-demo's Introduction

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 in the Phoenix website.

Next Steps:

  • Deployment using Docker and Docker-Compose.

phoenix-vue-demo's People

Contributors

angarsk8 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

phoenix-vue-demo's Issues

Can login without valid token

Hi!

Doing this in console while logged out, takes me into the auth section and lets me search for gifs etc.

localStorage.setItem("id_token", "wops")

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.