Coder Social home page Coder Social logo

recipes's Introduction

Recipes

This application was made as part of Marley Spoon's hiring proccess.

In this application we can

List some recipes

The list contains a picture and title of multiple recipes. We can also check more informations by using the "View full recipe" button.

image

View a recipe full details

Here the can see the recipe's title, picture, description. We can also see the recipe's tags, if there is any and the chef's name, if it was informed.

image

The recipes data are provided by Contentful, so, that means we don't have a database on this project.

The project is also running on

https://ws-marley-spoon-recipes.herokuapp.com/

What was used

  • Bulma as my front end framework. I learned it a year ago and loved the simplicity and variety of options that Bulma gives me.
  • Capybara is my option to create frontend tests.
  • CircleCI as the CI for this project.
  • Heroku to deploy our project.
  • Rails - Rails is the framework I'm most confortable working with and the one I've spent more time learning. It's powerful and really easy to start a new project.
  • Rspec for testing. A powerful and versatile tool which I always use in my projects.
  • Webmock is the tool I prefer to avoid external calls in my tests. I opt for Webmock rather than VCR because Webmock gives me clarity of what external calls are happening is my tests.

What next?

This project can be improved further by

  • Adding some caching to avoid excessive external calls;
  • Use the CDN version of Bulma;

Setting up the project

Using Docker

IMPORTANT Make sure you have Docker and Docker Compose first.

Copy the .env.sample into .env

cp .env.sample .env

And then build the project image

docker-compose build

Running the application

Run this command in your terminal

docker-compose up

After the boot the app will can be accessed in http://localhost:3000

Running the tests

Run this command in your terminal

docker-compose run --rm web bundle exec rspec

Local setup

IMPORTANT Make sure you have ruby 2.6.5 installed.

Start by running the application's setup

bin\setup

This will

  • Copy the .env.sample into .env so you can change the values locally;
  • Install the Ruby dependencies;
  • Install the Javascript dependencies;

Running the application

Run this command in your terminal

bin\rails server

After the boot the app will can be accessed in http://localhost:3000

Running the tests

Run this command in your terminal

bundle exec rspec

recipes's People

Contributors

wilkinsondarolt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.