Git Product home page Git Product logo

koa2-login's Introduction

项目介绍

  • 采用vue-cli构建初始项目
  • 前端采用Vue、Element-ui、axios搭建页面以及数据处理,后端采用koa2以及Mysql完成相关请求接口
  • 采用前后端分离,此为前端项目,后端项目地址移步koa2-server
  • 初步了解一下koa2与Express构建服务的不同

项目内容

  • 完成token机制的注册登录

  • 完成Github的第三方登录

项目启动

yarn / npm install 使用yarn或者npm安装依赖

npm run dev 启动项目

同时,需要将后端项目clone至本地并启动该服务,详情请移步koa2-server

项目起源

  • 此项目相当于login项目的补充,对第三方登录进行填坑

  • 将原login项目中的后端框架Express以及mongoDB,更新为Koa2框架以及Mysql

  • 原login项目中,前后端夹杂在一个项目中,后端服务重启与前端服务热更新及重启需要借助于其它方案配置,才能达到一定的自动化体验(相关内容可以移步login项目),而此项目采用前后端分离,后端依靠nodemon等实现服务监听及自重启,虽然分成两个项目,但是更加方便管理和理解

  • 此项目部分目录结构有变化,如axios的进一步封装,将接口至于rest目录中同一管理,均是日常工作中的一些习惯吧

项目相关

koa2-login's People

Contributors

selvin11 avatar

Watchers

 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.