Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/terieyenike/reviewly
A platform where users can sign up with their basic information and post reviews about apartments they've previously lived in
https://github.com/terieyenike/reviewly
bcrypt-nodejs express nodejs postgresql
Last synced: about 1 month ago
JSON representation
A platform where users can sign up with their basic information and post reviews about apartments they've previously lived in
- Host: GitHub
- URL: https://github.com/terieyenike/reviewly
- Owner: Terieyenike
- Created: 2021-03-14T20:46:13.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-14T20:54:49.000Z (almost 4 years ago)
- Last Synced: 2025-01-19T05:15:45.886Z (about 1 month ago)
- Topics: bcrypt-nodejs, express, nodejs, postgresql
- Language: JavaScript
- Homepage: https://immense-eyrie-79700.herokuapp.com/reviews
- Size: 1.59 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ReviewLy, reviews about apartments
This API allows you to sign up with your basic information and post reviews about apartments you've previously lived in.
The API is available at [https://immense-eyrie-79700.herokuapp.com/](https://immense-eyrie-79700.herokuapp.com/)
**POSSIBLE SCHEMA for ReviewLy**
```js
/*--> res = displays the messaage and success msg, home route.
--> /register --> POST = user
--> /signin --> POST = user
--> /reviews/:id --> GET = single user
--> /reviews --> GET = list all reviews from users
--> /reviews --> POST = info about apartment reviews from users.
*/
```### Endpoints
**Status**
GET /
Returns the status of the API displaying the message and success, OK.**List of Reviews**
GET /reviews
Returns the status of all the reviews by the user.**Get a single review by a user**
GET /reviews/:id
Retrieve detailed information about the review**Post a review**
POST /reviews
Allows you to submit apartment based reviews
The request body needs to be in JSON format and include the following properties:- name
- email - required
- apartment_lived_in - required
- landlord - required
- apartment situated - required
- rating - Integer - requiredExample
```json
{
"name": "nelson",
"email": "[email protected]",
"apartment_lived_in": "Plot 5 Asaba road Rumuigbo",
"landlord": "Mrs Green",
"apartment_situated": "Rivers",
"rating": 4
}
```**Submit a registered user, sign up**
POST /register
Allows you to submit your details for registration to the database.
The request body needs to be in JSON format and include the following properties:- name
- passwordExample
```json
{
"name": "nelson",
"email": "[email protected]",
"password": "nelson123"
}
```**Sign in a user**
POST /signin
Allows the user to enter the login details to authenticate the user.
The request body needs to be in JSON format and include the following properties:
- passwordExample
```json
{
"email": "[email protected]",
"password": "nelson123"
}
```#### Deployment
Heroku
#### Author
Teri Eyenike