This is a Resource Portal for College to encourage sharing of resources like notes, books, etc. online by the teachers to the students.
- Different entity portal (student, teacher).
- Add individual resources for each year, department, etc.
- View list of uploaded notes, assignments, books, etc.
- Filter resources based on department, year and resource type.
- Mark favourites or save resources from list of uploaded one.
- Able to download existing resources.
- User can add his/her profile details.
- Login/Sign Up.
- Frontend: HTML, CSS
- Backend: Django
- IDE: VS Code
- API Testing & Documentation: Postman
- Version Control: Git and GitHub
- Database: PostgreSQL
- Hosting: Heroku
Fork Resource-Portal repository and clone at your local
- Fork and Clone the repo using
$ https://github.com/todi-2000/Resource-Portal.git
Creating Virtual Environment
A virtual environment is a tool that helps keep dependencies required and the project isolated. If you wish to install a new library and write
pip install name_of_library
on the terminal without activating an environment, all the packages will be installed globally which is not a good practice if you’re working with different projects on your computer.
If this sounds a bit complicated, don’t worry so much because a virtual environment is just a directory that will contain all the necessary files for our project to run.
Installing venv (required once)
Windows
py -m pip install --user virtualenv
py -m venv env
Linux
python3 -m pip install --user virtualenv
python3 -m venv env
You have to start virtual environment everytime you start new terminal -
Windows
Using gitbash
. env/Scripts/activate
Using Powershell
. env\Scripts\activate
Linux
source env/bin/activate
Windows
pip install -r requirements.txt
Linux
pip3 install -r requirements.txt
Windows
py manage.py migrate
Linux
python3 manage.py migrate
Windows
py manage.py createsupeser
Linux
python3 manage.py createsupeser
Windows
py manage.py runserver
Linux
python3 manage.py runserver
deactivate
If you have installed new dependency, the pip freeze command lists the third-party packages and versions installed in the environment.
Windows
pip freeze > requirements.txt
Linux
pip3 freeze > requirements.txt
Everytime you change db models, you need to run makemigrations and migrate to update on database.
Windows
py manage.py makemigrations
py manage.py migrate
Linux
python3 manage.py makemigrations
python3 manage.py migrate
Manshi Todi 💻 |