Skip to content

Vinayak2002/CodeRelay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hostel Management WebApp

CodeRelay AMV

Material Bread logo

This webapp can be used for hostel complaint management services. There are two groups of users: students - hostel dwellers officers - managers - people who are supposed to resolving the complaints

Features -

  • Registration - Users can register in this webapp.
  • Officer Registration - This can be done only by administrators after an officer registers from signup page.
Admin View can be accessed at localhost:PORT/admin
username - admin 
password - admin
  • Complaints Logging - Complaints can be posted only by students.
  • Complaints Management - Officers can handle complaints.

Technologies used:

Python
Django
HTML5
CSS3
Bootstrap
Anaconda
JavaScript
Heroku
Postgres

Steps to setup on your own local machine:

  • Pull the code from github.
  • Create a virtual environment and install django crispy-bootstrap5 and psycopg2-binary python modules.
pip install django crispy-bootstrap5 psycopg2-binary
  • Get database credentials of a postgres database using heroku for free.
  • Add the following lines in the settings.py file.
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': 'database-name',
        'USER': 'username',
        'PASSWORD': 'password',
        'HOST': 'host-address',
        'PORT': 'port'
    }
}
  • Migrate the database
python manage.py makemigrations

python manage.py migrate
  • Run the server
python manage.py runserver
  • Now the server will be running and you can use the webapp.