GithubHelp home page GithubHelp logo

lingyingyang / elearning Goto Github PK

View Code? Open in Web Editor NEW
12.0 3.0 9.0 22.81 MB

an e-learning website with recommender system,

Python 2.07% CSS 7.13% HTML 24.70% PLpgSQL 33.07% JavaScript 0.55% TSQL 32.49%
python3 django postgresql-database elephantsql

elearning's Introduction

elearning

an elearning website with recommender system.

DEV

http://127.0.0.1:8000/ test account: yiliang / abcd1234@
http://127.0.0.1:8000/admin/ test account: admin/test1234@

Cloud - AWS EC2

http://ec2-13-239-55-207.ap-southeast-2.compute.amazonaws.com/ test account: yiliang / abcd1234@
http://ec2-13-239-55-207.ap-southeast-2.compute.amazonaws.com/admin test account: admin / test1234@

Development

Components

  1. list page of courses
  2. detail page of course
  3. info page of staff
  4. info page of student
  5. course progress of student
  6. course recommendation for student

Dependencies

  • Save dependancies to a file pip freeze > requirement_file.txt
  • Install all dependancies in the file pip install -r requirement_file.txt
  • List of major dependencies pip install django
    pip install pandas
    pip install python-rake
    pip install scikit-learn
    pip install psycopg2
    pip install django-crispy-forms
    pip install pylint-django Link
    pip install rake_nltk

Initial project

django startproject elearning

Initial Application

  • course component python -m django startapp course
  • users component python -m django startapp users

run server

python manage.py runserver

  • debug: true => will reload automatically

Database ORM

  1. should add app into project's setting.py firstly
  2. update modules.py
  3. migrate models using commands as below
    python manage.py makemigrations
    python manage.py migrate

ERD

Image of ERD

Administration

python manage.py migrate
python manage.py createsuperuser

Migrate to PostgreSQL - ElephantSQL

  1. install python -m pip install psycopg2
  2. migration python manage.py migrate
  3. create admin superuser

Issues

Populating SQL script into a migration step

Method 1

  1. create relevant models
  2. python manage.py makemigrations --name inital_data --empty course
  3. add load_data_from_sql
  4. python manage.py migrate course

Method 2

  1. Use the given SQL script to populate models and data Linked to solution
  2. connect to the database
  3. python manage.py inspectdb > models.py

elearning's People

Contributors

auk8968 avatar christinasteins avatar lingyingyang avatar shuyancao avatar sunnyyel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

elearning's Issues

Is Cosine Similarity really work?

Hello, I'm very interested with your repo. But there is a line of code I don't understand. In file course/services.py, at line 52, I saw this: cosine_sim = cosine_similarity(count_matrix, count_matrix). I think you are calculating the cosine similarity of count_matrix with itself. Does this really make any senses, because as I know, the result of this is always 1.

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.