Giter Site home page Giter Site logo

cz3002-backend's Introduction

cz3002-backend

default Swagger API document address: root address: eg http://localhost:8000

install guide

install dependency

You can use pip to install all package yourself, the dependency list in pipfile, just ignore below

// install pipenv
$ pip install pipenv

//install dependency
$ pipenv install

database migration

$ python manage.py makemigrations
$ python manage.py migrate

run server

//to start environement in console
$ pipenv shell

// run server
python manage.py runserver

//with port
python manage.py runserver 8080

for email you can change email addr and pasword in settings, or use .env below

  1. create a .env file under cz_3002_backend, not the folder contain pipfile
  2. add 2 line in it
    • export EMAIL_HOST_USER=your_emal
    • export EMAIL_HOST_PASSWORD=password //in terminal //in terminal
$ source .env

doc

Add following to your http header after login

  • Authorization: Bearer [access token]

access token expire after 5 minutes and require to use fresh to get new access toen

All the endpoint require access token except following:

  • register
  • verify email
  • login
  • password reset email
  • password reset token check
  • change new password

cz3002-backend's People

Contributors

nhanpotter avatar hhfff avatar khanhphungntu avatar

Watchers

 avatar Malcom Teh avatar Nicholas Choo avatar

cz3002-backend's Issues

forget password

When user enter wrong password one or multiple times, user use reset password function

  1. User clicks forget password in the login page
    Users enter email address
    User selects ‘request password reset’.
    Once email account is authenticated, email server sends email to reset password
    User opens email, and follows process to reset password
    User is now able to log in with new password

User enters incorrect email
System shows “This email does not exist”
User re-types his/her email address
If user is still unable to enter the correct email after multiple attempts, the application will request the user to personally
contact a helpline
Continue step 3 in normal flow

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.