Git Product home page Git Product logo

vue-jwt-vuerouter-vueresource's Introduction

vue-jwt-vueRouter-vueResource

使用vue component的方式实现的单页需登录认证app,认证方式直接使用了auth0提供的nodejs jwt认证模块nodejs-jwt-authentication-sample,页面切换采用了vue-router,和服务器端的通信认证使用了vue-resource。

##使用方法

1、安装认证模块(server文件夹)需要使用的依赖:

cd ./server
npm install

2、认证模块依赖安装成功后,回到主目录安装项目依赖:

cd ..
npm install

3、启动node服务器:

node ./server/server.js

成功启动后服务器会监听在http://localhost:3001

4、打开另一个终端,运行项目开发配置:

npm run dev

运行成功后,打开浏览器,进入http://localhost:8080即可查看项目文件(因为第一次需要加载热加载模块,第一次打开速度会比较慢)。

##预览

vue-jwt-vuerouter-vueresource's People

Contributors

geocld avatar

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.