Skip to content

A reactJS and D3 wine journal web application where users can see, swirl, sniff, sip and savor a glass of wine and write about the sublime wine tasting experience.

Notifications You must be signed in to change notification settings

labradorescence/mwine_tasting

Repository files navigation

M Wine Tasting

M Wine Tasting is a wine journal web application where user can see, swirl, sniff, sip and savor a glass of wine and write about the sublime wine tasting experience.

Getting Started

  1. clone the BACKEND REPO
  2. Run the rail server rails s -p 3001
  3. Clone this repository and cd into the directory
  4. Install all dependencies $ npm install
  5. Run the app (simultaneously running the backend rail server) npm start

Features

CRUD Operations

  • Program cloud storage so user can upload photos of the wine bottle on the Cloudinary.
  • Execute the application state so user can add a new review with date, occasion, aroma, color, acidity level and taste.
  • Present the previous reviews.
  • Wine aroma wheel as a reference.

React

  • Update the application state data of date, occasion, aroma, color, acidity level and taste using React lifecycle methods.
  • Organize the code structure by separating components into folders
  • Implement inverse data flow to send props up and down between parent components and child components

Asynchronous fetches

  • Pulls wine reviews from the API using asynchronous fetches

ActiveRecord Associations

  • Models have has_many and belongs_to associations
  • Uses ActiveModelSerializers, which turns model attributes into JSON object keys

Tech Stack

  • D3 / Observable
  • React.js
  • Ruby on Rails API
  • HTML/CSS
  • Active Record
  • postgresql

Tools

Component Tree

              index
                |
               App
                |
            ReviewPage
   _____________|______________
  |             |               |
ReviewForm  Search  ReviewCollection
                                |
                                |
                            ReviewCard
                            

reference

Mike Bostock's working demo https://github.com/observablehq/react-zoomable-sunburst

About

A reactJS and D3 wine journal web application where users can see, swirl, sniff, sip and savor a glass of wine and write about the sublime wine tasting experience.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published