Connect people to orphanages and bring good news to the childrens
Happy is a web and mobile application to people can find nearest orphanages and make a visit to bring good news. Application structure was made in Next Level Week event distributed by RocketSeat.
Server side of the Happy application using MVC architecture containing the following routes:
POST /orphanages
: Must receivename
,latitude
,longitude
,about
,instructions
,opening_hours
,open_on_weekends
andimages
inside request body, Example:
{
"name": "Orfanato das mocinhas",
"latitude": "-23.7664971",
"longitude":"-53.291757",
"about":"Novo orfanato",
"instructions": "Venha visitar",
"opening_hours": "Das 8h atΓ© 18h",
"open_on_weekends": "true",
"images": "orafanato-image.jpg",
}
-
GET /orphanages
: Return all orphanages in array. -
GET /orphanages/:id
: Return orphanage of request params.
$ npm install
$ npm dev
- Node.js - evented I/O for the backend
- Express - fast node.js network app framework
- Typescript - typed superset of JavaScript that compiles to plain JavaScript.
- TypeORM - an ORM that can run in Nodej, browser, Cordova, PhoneGap, Ionic, React Native, NativeScript, Expo, and Electron platforms and can be used with TypeScript and JavaScript