Git Product home page Git Product logo

elearning's Introduction

ELearning

Flask Updating

** A simple e-learning backend **

So many things here need to be improved, like route schema and security strategy.

But it's a not bad beginning.

If you meet questions when you read this program, you are welcome to contact with me by Wechat: smartseer.

: )

Structure

note: there are some prepared files in static and templates folder to make a simple view.

  • auth/
    • register
    • login(different roles, google+)
    • logout
    • generate tencent cos signature
  • cos/(course)
    • display course  - view course information
    • add or get notes
    • view course posts
    • read or write post
    • add or get comments
    • upload course(file) to tencent cos
    • activate or deactivate a course
    • set course picture
  • main/
    • index
    • show course list
    • show school list
    • show teacher list
  • pay/
    • show course(goods) info
    • create a payment
    • execute a payment
    • show pay result
    • get or add courses of cart
    • get or bind coupon
    • (user can buy course for another user)
  • per/(person)
    • view user information(owner or guest)
    • bind gmail
    • change posts user liked
    • send message to another user
    • tip new message
    • get new messages
    • bind parent only when user's role is student
    • show user's child(childern) only when user's role is parent
    • show user's order
    • set user avatar
  • sch/(school)
    • apply to join in a existed school only when user's role is teacher
    • apply to create a new school only when user's role is administrator
    • accept a teacher as own school member
    • show orders
    • set school picture
  • tests/
    • test some not all functions
  • __init__.py
    • salted session implementation
    • create Flask app
  • basic.py/
    • offer some basic opertions
  • db.py/
    • offer mysql and redis connection
  • models.py/
    • ORM model
    • fake data
    • refresh database(drop tables and then create them, end with fake data filled)
  • manager.py/
    • start the project
    • some addtional opertions

Waiting to do

  • contact operations
  • route optimization
  • improve paypal process
  • improve google+ login process

Change log

  • add the test module and fix some details
  • add a salted session choice
  • add a simple pagination

elearning's People

Contributors

a1014280203 avatar

Watchers

James Cloos 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.