HowToApply is a platform that aids the students wanting to apply to certain universities. Here, users can browse the information in a united platform, rather than it being scattered across different websites.
- Clone the repository
$ git clone https://github.com/pgmatev/HowToApply $ cd HowToApply/
- Initialise a virtual environment
$ virtualenv venv $ source venv/bin/activate
- Install the requirements
$ pip3 install -r requirements.txt
- Set up the database
You need to install PostgreSQL https://www.postgresql.org/download/
Then you have to create the databaseMake sure that the credentials in the project match$ psql -U postgres postgres=# CREATE DATABASE hta; postgres=# quit
insideHowToApply/hta/settings.py
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'hta', # should be the name of the database 'USER': 'postgres', # should match the user owning the database 'PASSWORD': 'postgres', # user's password 'HOST': 'localhost', 'PORT': '5432', }
- Populate the database
Additionally you can create an admin
$ python3 manage.py migrate $ python3 manage.py loaddata subjects.json
$ python3 manage.py createsuperuser
- Run the server
$ python3 manage.py runserver
To access the admin panel go to localhost:8000/admin
After registering a university, an admin has to activate it from the user registry in the admin section