Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/paulinetw/rails-yelp-mvp

Restaurant reviews app
https://github.com/paulinetw/rails-yelp-mvp

Last synced: 4 days ago
JSON representation

Restaurant reviews app

Awesome Lists containing this project

README

        

# README

Schema

A restaurant has a name, an address, a phone number, a category (chinese, italian...) and many reviews
A review has a content and a rating (between 0 and 5) and references a restaurant
Question: Can you draw this simple schema at db.lewagon.org? Discuss with your buddy.

Validation

A restaurant must have at least a name and an address.
The restaurant category should belong to a fixed list ["chinese", "italian", "japanese", "french", "belgian"].
A review must have a parent restaurant.
A review must have a content and a rating. The rating should be a number between 0 and 5.
When a restaurant is destroyed, all reviews should be destroyed as well.