This is a Rails social media platform for cooking enthusiasts where people can sign up and share their favorite recipes with others. Users can follow each other, write new opinions, or vote for any recipe recommendation they like.
Recipe Buddies is a social media platform built from scratch using Ruby on Rails, Bootstrap, CSS, SCSS, PostgreSQL, and Cloudinary for image cloud storage.
In this platform, users can signup and start sharing opinions on their favorite cooking recipes. Users can follow or unfollow other users (just like in Twitter) and vote or unvote for recipe opinions from other users (including their own).
Deployed on: HEROKU
Recipe Buddies app ⬅️⬅️ Click Here
- Sign up with a unique username and a full name
- Upload a profile picture and a cover picture
- Follow and unfollow other users
- Share an opinion on a recipe
- Vote for other opinions
- Vote only once per opinion
- See their followers and followed users
- See the number of opinions created since their last logout
- Ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [x86_64-darwin17]
- Rails 6.1.3.1
- PostgreSQL 13.2
- Bootstrap ^4.6.0
- HTML5 / SCSS
- Cloudinary (for image storing)
- Rspec (testing)
- Capybara >= 3.26 (testing)
- Fontawesome
- Mac OS
- VS Code
- Ruby 3.0.1p64
- Rails 6.1.3.1
- PostgreSQL 13.2
- Cloudinary account
- Linux/Mac Operating systems (preferred)
- Open your terminal or command prompt.
- If you do not have git installed in your system, skip this step and go to step 3; otherwise, go to the directory where you want to copy the project files and clone it by copying this text into your command prompt/terminal:
git clone [email protected]:StarSheriff2/receipe-buddies.git
.
Now go to "Install Dependencies" section - Download the program files by clicking on the green button that says “Code“ on the upper right side of the project frame.
- You will see a dropdown menu. Click on “Download ZIP“.
- Go to the directory where you downloaded the ZIP file and open it. Extract its contents to any directory you want in your system.
- If you are not in your system terminal/command prompt already, please open it and go to the directory where you cloned the remote repository or extracted the project files.
- While in the project root directory, type
bundle install
. This command will install all the necessary gems in your system. - Then you can type
yarn install --check-files
.
You will need a Cloudinary account to be able to deploy this app locally. If you already have one, copy your YML file into the config folder; otherwise, create a new account by going to Cloudinary and signing up for a free account: https://cloudinary.com/.
Once you have your new Cloudinary account set up, follow these steps:
- Login with your new account
- Go to your Cloudinary dashboard
- Look for the YML file and click on it to download it
- Copy this file into your config folder
- Edit the
"database.yml"
file in your"config"
folder:- Change the
username
andpassword
underdefault: &default
to your PostgreSQL local credentials or just delete lines 23 and 24 altogether
- Change the
- Now, in your terminal, type
bin/rails db:create
to create your local databases. - If successful, type
bin/rails db:migrate
to migrate the database.
You are all set now!
This project uses RSpec and Capybara for all testing. These gems are already in the Gemfile.
Note: You will need Chrome to make the integrations tests work, or you can optionally configure Capybara with your preferred browser.
To run tests go to the root dir of the repo in your terminal and type this:
rspec .
- In your terminal, run
bin/rails server
while inside the root directory of the repository files - Go to your browser of choice and enter this URL: http://localhost:3000/
- You can now create a new user, create opinions, follow other users on the platform and vote for any opinion
👤 Arturo Alvarez
- Github: @StarSheriff2
- Twitter: @ArturoAlvarezV
- Linkedin: Arturo Alvarez
Contributions, issues, and feature requests are welcome!
Give an ⭐️ if you like this project!
Design:
- Design idea by Gregoire Vella on Behance
- Licenced under The Creative Commons license
Image credits:
- Empty profile picture by Stephanie Edwards from Pixabay
- README pictures downloaded from Pexels
Lato font:
- Lato is a trademark of tyPoland Lukasz Dziedzic
- Source URL: http://www.latofonts.com/
- License URL: http://scripts.sil.org/OFL
This project is MIT licensed.