This is the API/backend for Give2Learn, a full CRUD app designed to provide refurbished laptops to schoolchildren in need. Built on a Express/Node backend (with a MongoDB) and Next.js frontend.
- Javascript
- Express
- Node
- MongoDB
- Trello
erDiagram
REQUEST {
bigint id
string deviceType-REQ
bool isPC
string modelType
string dimension
int quantityToRequest-REQ
}
DONATION {
bigint id
string firstName-REQ
string lastName-REQ
email email-REQ
string phoneNumber-REQ
string fromState-REQ
string fromCity-REQ
string address1-REQ
string address2
int zipcode-REQ
string deviceType-REQ
bool isPC-REQ
string brand-REQ
string modelType-REQ
int quantityToDonate-REQ
bool isPickup-REQ
date donateDate-REQ
}
Route Name | URL | HTTP Verb | Description |
---|---|---|---|
Index | /requests | GET | Displays list of requests |
Show | /requests/:id | GET | Shows a specific request |
Create | /request | POST | Adds new request to database |
Update | /request/:id | PUT | Updates a specific request |
Delete | /request/:id | DELETE | Deletes a specific request |
Route Name | URL | HTTP Verb | Description |
---|---|---|---|
Index | /requests | GET | Displays list of requests |
Show | /requests/:id | GET | Shows a specific request |
Create | /request | POST | Adds new request to database |
Update | /request/:id | PUT | Updates a specific request |
Delete | /request/:id | DELETE | Deletes a specific request |