Coder Social home page Coder Social logo

mohitkh7 / easy-learning Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 19.0 1.66 MB

A django based social platform which provides best resources to learn anything curated by community members.

Python 50.51% HTML 35.77% CSS 9.27% JavaScript 4.45%
django social-platform hackathon-project kwoc

easy-learning's Introduction

PRs Welcome made-with-python Slack Status

Easy-Learning

Easy Learning will be a comprehensive web based interactive tool with a complete list of resources to learn any stuff, skills, subject based on community feedback, further tailored according to your learning ability which will also be filterable and searchable.

Setup Instruction

  • Create a new directory at a desired place in your file system
mkdir name_of_your_choice
cd name_of_your_choice
  • Create a virtual environment in recently created directory and activate it:
python3 -m venv env
source env/bin/activate
  • Clone the repository and enter to the repository:
git clone https://github.com/mohitkh7/Easy-Learning.git
cd Easy-Learning
  • Next, install the dependencies using pip:
pip install -r requirements.txt
  • After this create database in mysql:
mysql -u root -p<your_mysql_password>
CREATE DATABASE easylearning CHARACTER SET utf8;
GRANT ALL PRIVILEGES ON easylearning.* TO admin@localhost IDENTIFIED BY 'thepassword';
FLUSH PRIVILEGES;

Here admin and thepassword should be same as USER and PASSWORD defined in database settings in startlearning/settings.py.

  • Once the database table is created, Migrate your database.
python3 manage.py migrate
  • Then create a superuser account for Django:
python manage.py createsuperuser
  • Then generate a API Key:
  1. Visit the url https://console.cloud.google.com/apis/
  2. Sign in with your google account.
  3. Search for YouTube Data API v3 and enable it.
  4. After enabling go to credentials present in the left navbar.
  5. Select a project (if none project is present then create one and select). After selecting create a API Key for it.
  6. Save the value of API Key in the environment variable. Below command can be used for linux user.
export YOUTUBE_API_KEY =  "Your API Key"
  1. For Windows set can be used to save the value in env variable.
  • Finally, you’re ready to start the development server:
python manage.py runserver

Visit localhost:8000 in your browser to see how it looks.

Contributing

You can contribute in several ways. If you know how to code or are a designer, you are welcome to contribute using pull requests.

You can also contribute by opening issues about defects and things that could be improved or request entirely new features that you think would help others.

Join the Slack Communication Channel

easy-learning's People

Contributors

arpit3018 avatar dependabot[bot] avatar dewangmodi avatar gayathrivenkatesh avatar icecereal avatar imskr avatar irinade avatar manasa2850 avatar mohitkh7 avatar rutvi1998 avatar sai-adarsh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

easy-learning's Issues

Hide Password Guidelines

While Creating new account or changing password password guidelines appears. It should be made either hidden or more interactive.

Redesign Home Page

Present home page looks quite boring and also its not user friendly. Ideas and suggestion are welcomed on how we can make it better.

  • brainstorm different ideas.
  • preparing mock sample design.
  • implementing it using HTML, CSS, Bootstrap.
  • making necessary changes in views.py file.

Migrating to Django 2

At present project is running on Django 1.11 which should be migrated to Django 2

Error in forgot password

Error occurs when forgot password link is being clicked and login is done with that link.
NOTE: Forgot password link can be found in the console when the procedure is followed

Remove Footer

Remove footer displaying "developed by mohitkh7"` from all the pages.
How to approach -

  • Remove footer_wrapper div from learn/templates/base.html
  • Remove css code associted with it from static/css/style.css

Remove redundant print statements from view.py file

Inside learn/views.py there are mutliple redundant print statement. Some of them are commented out and some are part of code. They were written earlier during development for debugging purpose but now they are not required.
Remove all print statements from views.py file

Design 404 Error Page

Design a new template for custom 404 Error Page.
Update the file learn/templates/404.html using bootstrap.

Fetch youtube video meta data

Write a script based on Youtube API's to fetch meta data such as likes, dislikes, views, length etc. of youtube video. On adding youtube video resources this script should all fetch relevant data and populate resources fields.

Design Logo

Design logo for easy learning project. This logo will be used in navbar, email template, favicon and multiple other places.
A logo can be:

  • Something reflecting learning
  • Combination of letter E and L
    This are just suggestion from my end. You are free to use your own creativity.

Create a png file of 1:1 ratio of logo and upload it in root directory of project.

Make models.py file pep8 standard compliant

learn/models.py file is not as per pep8 guidelines. There are lots of invalid indentation and spacing. Make this file compliant to pep8 standard.

  • Install pycodestyle using pip install pycodestyle
  • run this command against models.py file, it will list down all the errors.
  • make necessary changes to models.py file.
  • add pycodestyle to requirements.txt

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.