Hackathon Challenge to Build an App to help Ukrainian Refugees.
iShelter will fund temporary housing for up to 100,000 people fleeing Ukraine โค, regardless of their nationality, racial or ethnic origin, or how they identify themselves. You can offer your space for this cause for free through iShelter, or make a donation that will help finance the stays of those who need it most.
Clone the Repository
git clone https://github.com/CodingDojoHackathonTeam2/SafeMaps.git
cd SafeMaps
Technology | LINK |
---|---|
JavaScript | https://developer.mozilla.org/es/docs/Web/JavaScript |
ReactJS | https://es.reactjs.org/ |
React Router DOM | https://www.npmjs.com/package/react-router-dom |
Tailwind CSS | https://tailwindcss.com/ |
Radix UI | https://www.radix-ui.com/ |
Daisy UI | https://daisyui.com/ |
Axios | https://axios-http.com/docs/intro |
- Installation of libraries
npm install
- Run the project
npm run dev
Technology | LINK |
---|---|
Python | https://docs.python.org/3/ |
Django | https://docs.djangoproject.com/en/4.0/ |
Django Rest Framework | https://www.django-rest-framework.org/ |
MapBox's APIs | https://docs.mapbox.com/api/overview/ |
PayPal APIs | https://developer.paypal.com/home |
SqLite | https://www.sqlite.org/index.html |
- Create directory above repository
- In direcory above repository create virtual environment
python3 -m venv envSafe
! If python3
doesn't work, may have to use python
Your directory tree should look like this:
- Activate virtual environment (Windows)
envSafe/Scripts/activate
May have to use call
call envSafe/Scripts/activate
(Mac/Linux)
source envSafe/bin/activate
- Install CORS Headers library
pip install django-cors-headers
- installing django-cors-headers will install Django Version 4.0.0, but we're using 3.0.0. So you may have to uninstall Django
pip uninstall Django
- install the rest of the packages
pip install Django==3.0.0 djangorestframework djangorestframework-simplejwt requests
- Make Migrations and Migrate
python3 path/to/manage.py makemigrations
python3 path/to/manage.py migrate
- Run django server
python3 path/to/manage.py runserver
Admin
- Create superuser
python path/to/manage.py createsuperuser
- Follow prompts
- Test login at http://127.0.0.1:8000/admin/
Method | URI |
---|---|
GET | api/csrf/ |
Method | URI |
---|---|
GET | session/check |
Method | URI |
---|---|
POST | api/users/register |
Method | URI |
---|---|
POST* | api/users/login |
Method | URI |
---|---|
POST | api/announcements/create |
Method | URI |
---|---|
GET | api/announcements/all |
Method | URI |
---|---|
GET | api/v1/profiles |
Method | URI |
---|---|
GET | api/v1/profiles |
- Clean up code
- Migrate from sqlite to a hosted db like Postgres or MySQL
- Allow hosts to upload pictures
- Have hosts and refugees list needed items for donors to send
- Contact or messaging feature from Refugee to Host
- Not a technology step, but hosts would submit applications and have a background check run
- Lee Aarron - leeaarron (Github)
- Stuart Yee - Stuart-Yee (Github)
- Renรฉ Caceres- caceresrene(Github)
- Jhomar Astuyauri - Jhomar1158-ux (Github)
- Lino Cruz - LinoCruz (Github)
- Damian Cardenas- Mauffin (Github)