- Rest Api with Node, Express and MySql
- React on the frontend
- Docker to generate the containers
- Docker
- Yarn
- Port 4000 and 5000 not being used
cd backend/
yarn
cd ../frontend/
yarn
cd ..
docker-compose build
docker-compose up (or with -d)
(wait for it to load everything)
open http://localhost:5000
- On the backend folder, there is a test for the hosts
cd backend/
npm test
- The api will be available on http://localhost:5000
- Can make requests with postman or browser
-
GET /hosts
-
POST /hosts
-
GET/hosts/:id
-
DELETE/hosts/:id
-
PUT/hosts/:id
-
GET/hosts/dashboard
-
GET/hosts/:id/properties
-
POST/hosts/:id/properties
-
GET/hosts/:id/properties/:pid
-
DELETE/hosts/:id/properties/:pid
-
PUT/hosts/:id/properties/:pid
-
GET/hosts/:id/properties/:pid/versions
- When adding a property, the field Airbnb Id needs to be from a real link
- A Rule was added that fetches for the link and decides what to do, based on the status code
- After some requests, the app can be blocked from making requests