-
Follow the project prompt to host the server on repl.it. Make sure you make the server public before submitting the project so that we can grade the assignment
-
Install server dependencies with
npm install -
Run the server with
npm run startor click the 'Run' button on repl.it
Do not put any sensitive data on the server
| column | data class type | database type |
|---|---|---|
| id | Int | INTEGER |
| String | TEXT | |
| type | String | TEXT |
| bed | Int | INTEGER |
| bath | Int | INTEGER |
| price | Int | INTEGER |
| covidTested | String | TEXT |
| moveIn | String | TEXT |
| location | String | TEXT |
| desc | String | TEXT |
| date | String | TEXT |
| image | String | TEXT |
| request type | endpoint | returns |
|---|---|---|
| POST | /images/upload | ImageUploadResponse |
| GET | /images/{imagename} | Binary for Image |
| POST | /housing | Message |
| GET | /housing/all | List<Post> |
| GET | /housing/{id} | Post |