This application is intented to provide services to Ukranian refugees with disabilities. We want to connect refugees with temporary homes that are able to cater to their specific needs, rather than random placement. Other References: Disability Service Matcher
Ideation Breakdown/ Project Proposal can be read here
This application was built using the Django Framework.
Basic functionality:
- User Registration
- Host Registration
- Unique Email filter (so no repeated users & hosts)
- Update & Delete User/Host information or account
- Filter Function that coordinates matching pairs of User-Host based on disability (or openness to accomodate for specific needs).
Application was deployed using the Heroku platform.
Click on this link to test out GET/POST/PUT/DELETE request to the RESTful API.
Endpoints:
/api/IWD_Homes/users/ - List of registered users (GET/POST)
/api/IWD_Homes/hosts/ - List of registered hosts (GET/POST)
/api/IWD_Homes/<pk:int>/hostData/ - Change individual host informatin (PUSH/DELETE)
/api/IWD_Homes/<pk:int>/userData/ - Change individual user information(PUSH/DELETE)
/api/IWD_Homes/<pk:int>/matches/ - Find matches for an individual User (based on selected disability) (GET)
{"name": "Joe Silver","email": "joe@email.com","city": "London","phone": "00000000","disability": "Other","other": "null","bio": "Hi My Name is Joe. I like to talk long walks on the beach.","host": "false","family_number": "1"}
PUSH-requests require that a user already exists. It is used to update any fields with new information. You must also know the id (pk:id) to update the correct host or user.
Also note that any requests that use single quotations will cause an error because the application/json type only registers double quotes.
To run Django application download .zip file for entire directory.
Unzip the file and cd
into downloaded folder django_react_proj
.
Run pip install -r requirments.txt
and then from inside the folder run python manage.py runserver
To set up in Heroku:
- Download Git & sign up for Heroku
- set up Heroku on local machine
- run
git init
- update files with
git add -A
- commit new files
git commit -m "message"
- run
git push heroku master
- returned link should allow you access to make calls
Note: May need to change secret keys and superuser