Skip to content

Full-stack Rails application for cooking recipes. Built with Ruby on Rails, Bootstrap, PostgreSQL, RSpec.

Notifications You must be signed in to change notification settings

8Bts/Big_Strawberry

Repository files navigation

BigStrawberry

This project is about building a fully functional web application using Ruby on Rails framework. The idea of the web app is to provide a useful and entertaining platform for discovering, sharing, and voting great cooking recipes. The recipes grouped by categories and can be created, edited, and deleted by the author. In the homepage, you can see:

  • The featured post on the first row, taking the full width. The featured post is the recipe with the biggest number of votes given by users.
  • The categories of the meals on the navbar and under the featured post. Categories link to the page of recipes according to category.

The authentication system is very simple and only requires Username credentials. Users can create an article by clicking the Add New Recipe button on the home page. She can see the list of articles created by herself by clicking on the Username link which is at the rightmost side of the navbar. The articles can be edited and deleted by the author using icons under the recipes. You can vote for the recipes and help to move it to the featured banner.

Built With

Tools:

  • Ruby v2.7.1
  • Ruby on Rails v6.0.3.2
  • Cloudinary
  • Pixlr
  • Firefox Developer Edition

Gems:

  • CarrierWave
  • Cloudinary
  • Figaro
  • RSpec

Design:

  • Nelson Sakwa's LifeStyle Articles design

Live Version

Heroku server

Screenshot

screenshot1

Getting Started

To get a copy clone this repo to your local environment:

`git clone https://github.com/8Bts/Big_Strawberry'

Prerequisites

  • In order to make the program work, you need to have ruby interpreter installed in your system. You can get the latest version of ruby from official website. Ruby works better on the Linux OS but you can use other systems using bridging tools.

  • This application uses Cloudinary service to store it's images. So you need to have a Cloudinary account and you need to connect your app to it. Check Setup to see how to do it.

Setup

Instal gems with:

bundle install

Setup database with:

rails db:migrate
rails db:seed

Connect with Cloudinary:

  1. run bundle exec figaro install command and you will get config/application.yml file which is automatically added to your .gitignore list.

  2. Open that file and add your Cloudinary credentials there. (You can get your credentials from Cloudinary Dashboard)

Example:

# config/application.yml

cloud_name: "my_cloud"
api_key: "7381a978f7dd7f9a1117"
api_secret: "abdc3b896a0ffb85d373"

Usage

  1. Start server with: rails server

  2. Open http://localhost:3000/ in your browser.

Tesing

Testing can be run using rspec command. Make sure you run bundle command before this.

Authors

👤 Rashid Mammadli

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

About

Full-stack Rails application for cooking recipes. Built with Ruby on Rails, Bootstrap, PostgreSQL, RSpec.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published