Home

Awesome

☕ COFFEE BEANS

Project Description: "Find Your House"

React Directory: ./app/javascript/packs

💡 This is a Rails-React hybrid repository. For the Front-End of the application, Rails only rendering one empty view(app/views/pages/index.html.erb) with the default layout. In the default layout we have javascript_pack_tag which is rendering the react scripts. After this initial response from rails, all the interactions are made with API calls(app/javascript/packs/src/API) with Backend via React. There is no other full-page response other than the first one.

➡️ Features

☕ Browse through a list of coffee beans.

⭐ You can add new coffee beans and put them in your favorite list.

🔒 Also you can create your own account to secure your favorite list.

Live Demo

Live Demo Link

Screenshots

<p align="center"> <img height=300 src="./public/images/screenshot-single-coffee.png" /> <img height=300 src="./public/images/screenshot-create.png" /> <img height=300 src="./public/images/screenshot-favorites.png" /> <img height=300 src="./public/images/screenshot-create-user.png" /> <img height=300 src="./public/images/screenshot-menu.png" /> </p>

Built With

⭐ Getting Started ⭐

Prerequisites

Setup

First clone the repository(in Terminal):

<h3 id='usage-local'>🖥️ Running In The Local Environment</h3>

After setup:

<h3 id='tests'>🧪 Automated Tests</h3>

There are two sets of tests for this project. One for Rails and one for React side.

After setup:

React Test (36)
Rails Test (51)

<h3 id='extras'>Which "Nice To Have Requirements" I Have Added To My Project?</h3>

NTHR-1
WHY

I wanted to learn more about authentication relationships between rails and react, when we are not allowed to use rails views.

NTHR-2
WHY

I wanted to give my users a better experience. They can have their own isolated area in the website. They customize their favorites list. Also easily scalable to other features like sending text messages.

NTHR-3
WHY

I wanted to give my users a better experience. They can have create own coffees. This is not as an admin panel. Every logged in user can add a coffee to the system with an image.

<h3 id='futurefeatures'>Future Features</h3>

Author

👤 Kubilay Caglayan

<h3 id='contributing'>🤝 Contributing</h3>

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

<h3 id='acknowledgments'>Acknowledgments</h3>

Useful Commands

rails c -e test

rails s -e test

rails RAILS_ENV=test db:reset

rails RAILS_ENV=test db:seed

ActiveRecord::Base.connection.current_database