Step into a realm of hope and connection with Refuge! Inspired by the global effort to support displaced communities, this platform is crafted for those who aspire to bridge gaps and foster unity. Bringing together aid providers and seekers, Refuge stands as a testament to the power of solidarity in challenging times.
Refuge - AidConnect/RefugeeAid emerges as a platform addressing the challenge of efficiently connecting aid workers and compassionate citizens with refugee camps or organizations. It ensures that assistance meets the refugees, asylees, and migrants' current and specific needs in an engaging, real-time feed. This initiative is a Capstone Project made in October, 2023 at the Turing School of Software and Design.
This repository is the Backend API. You can view the Frontend application's repository here and interact with a live demo here.
Install all necessary gem files:
bundle install
Create, migrate, and seed the PostgresQL database:
bundle exec rails db:{create,migrate,seed}
Run the test suite to verify that everything works:
bundle exec rspec
Returns details from a single Organization
using its unique id
.
βοΈ Example Query | 𧩠Example Variables |
---|---|
query ($id: ID!) {
organization(id: $id) {
id
name
contactPhone
contactEmail
streetAddress
website
city
state
zip
latitude
longitude
shareAddress
sharePhone
shareEmail
aidRequests {
id
organizationId
aidType
language
description
status
}
}
} |
{
"id": 2
} |
π¦ Example Response | |
π’ Status
|
Returns all organizations
operating within the provided city
and state
.
βοΈ Example Query | 𧩠Example Variables |
---|---|
query ($city: String!, $state: String!) {
organizations(city: $city, state: $state) {
id
name
city
state
website
aidRequests {
id
aidType
language
description
status
}
}
} |
{
"city": "Denver",
"state": "CO"
} |
π¦ Example Response | |
π’ Status
|
Returns all aidRequests
from a provided city
and state
.
Examples
βοΈ Example Query | 𧩠Example Variables |
---|---|
query ($city: String!, $state: String!) {
aidRequests(city: $city, state: $state) {
id
aidType
language
description
status
organization {
name
city
state
}
}
} |
{
"city": "Denver",
"state": "CO"
} |
π¦ Example Response | |
π’ Status
|
Types | Description |
---|---|
Organization |
The entity requesting aid. |
AidRequest |
The aid an organization is requesting. |
type Organization {
id: ID!
name: String
contactEmail: String
contactPhone: String
website: String
streetAddress: String
city: String
state: String
zip: String
latitude: Float
longitude: Float
shareAddress: Boolean
shareEmail: Boolean
sharePhone: Boolean
aidRequests: [AidRequest]
}
type AidRequest {
id: ID!
organizationId: Integer
aidType: String
language: String
description: String
status: String
organization: Organization!
}
Refugee Aid is a student project built in October, 2023 for the Backend Program of the Turing School of Software and Design.
Ethan Black - Back-End Developer LinkedIn || GitHub |
Artemy Gibson - Back-End Developer LinkedIn || GitHub |
Davis Weimer - Back-End Developer LinkedIn || GitHub |
Renee Pinna - Front-End Developer LinkedIn || GitHub |
Parvin A. Sattorova - Front-End Developer LinkedIn || GitHub |