FoodPlaces
A Rails app for managing your favorite restaurants.
Feature specs
- User gets a list of restaurants with name, address, and kitchen type
- User sees a google maps view and can see restaurant details clicking on the markers
- User gets a list of the dishes when opening the page of a restaurant
- User can insert new restaurants
- User can insert new dishes
Domain model
At the moment we have the Restaurant
and Dish
model.
The dishes
association is a nested attribute for Restaurant
.
Restaurant model
- name: string
- address: string
- kitchen_type: string
Dish model
- restaurant_id
- price: decimal
- dish_type: enum (0: "Meat", 1: "Vegetarian", 2: "Vegan")
- gluten_free: boolean
Next features
-
Restaurant reviews Have the ability to leave a review to a restaurant, and see the average rating for every restaurant.
-
Veggie level for dishes
It would be nice to specify if a dish is vegan/vegetarian, so that you can see the "veggie" level on the restaurant list.
Getting started
-
Clone this repository to your computer:
git clone https://sekmo.github.com/foodplaces
-
cd
into the directory -
run
bundle install
(or justbundle
) to install all the gems specified on theGemfile
-
run
bin/rails db:create db:migrate
to create the development and test database -
run
bundle exec rspec
to execute the tests -
run
bin/rails s
to start the server -
the app is running at localhost:3000.