Skip to content

ConanXie/koa2-login-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa2-login-demo

A demo of sign up, sign in and reset password which based on koa v2.

Live Demo

Remind

This project needs Node.js v7.6.0(or later versions), MongoDB and Redis. Make sure you have installed these software on your device.

Configure

The configuration file is .env
Edit it with your own data:

  1. Your email server, like gmail, outlook, etc.
  2. Your email address
  3. The password that your email provided for third parties

Start

First of all, you should install the dependencies in package.json. You can use either with npm or yarn.

After the installation is complete, run the command below to build and start the demo

npm run build && npm start

You will see the output below after a few seconds, that means the demo started successfully.

Listening on 3030

Open http://localhost:3030 in your browser.

License

MIT. Copyright (c) 2017 ConanXie.

About

A login demo based on koa v2

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published