Skip to content

Latest commit

 

History

History
77 lines (61 loc) · 3.06 KB

README.md

File metadata and controls

77 lines (61 loc) · 3.06 KB

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