Skip to content

jwgalvin/astroflow_fe

Repository files navigation

AstroFlow Frontend

A rails frontend for a service oriented application. A user can enter in data about their menstral cycle as well as their horoscope so Astroflow can provided a one stop shop of astrology and flowology.

AstroFlow Backend

To see the Backend application on github for this project click here.

To visit the application on heroku click here

Design Principles:

The design of this application relies on the facade design pattern. Here's a very high level overview:

  • A controller sends a request from the front end and intiates the creation of a facade, and passes it data(params, from JSON or query) in the backend.
  • A facade is a ruby class that initializes a Service, and sends the service data to a PORO.
  • A service calls an external api enpoint(get (https://web.site?optional_param) ) and returns parsed JSON.
  • The parsed JSON is turned into a Ruby object through a PORO.
  • The object is serialized and sent to the route matching the controller action.
  • Additionally, this project uses Google OAuth 2.0 for users to create and log into their accounts.

Contributors

🩹Jessica Grazulis 🌚TJ Williams 🌝Joe Galvin 🩸Sully Birashk 🔮Sam Ivari

Getting Started

Development setup

ruby 2.7.4

rails 5.2.6

Gems

pry v badge shoulda-matchers v badge rspec v badge simplecov v badge json-apiserializer

faraday vcr capybara figaro

Setup

  1. clone this repository
  2. cd into 'astroflow_frontend' directory
  3. run 'bundle install' to install gems
  4. run rake db:{drop,create,migrate,seed} to prepare the database
  5. run bundle exec rspec to run the test suite
  6. run rails s to launch the production environment
  7. send requests to "https://localhost:3000".

User Experience

Dashboard Screen Shot 2022-04-21 at 5 13 41 PM After registering as a user through a google account the user is brought to the user dashboard where they can review their horoscopes. Screen Shot 2022-04-21 at 5 14 58 PM

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published