Code Monkey home page Code Monkey logo

rails-api-with-js-frontend-project's Introduction

Mindless Meals

Mindless Meals allows a user to get a random recipe based on an ingredient they have at their house. It was built with indecisive folks in mind.

This app utilizes a Rails API back-end with a PostgreSQL database, as well as a Javascript front-end.

The Back-End:

The following end-points are utilized in the API to fetch data:

The Front-End:

The front-end uses Javascript to asynchronously make get and post requests to the API to populate the page with data and update the API. The data and functionality of the front-end was encapsulated in classes and methods.

Getting Started

To get started using this app do the following:

  • Clone the repository

    • git clone https://github.com/racheladaw/rails-api-with-js-frontend-project.git
  • Navigate to the top of the 'quick-recipe-api' directory

    • cd quick-recipe-api
  • Install required gem dependencies

    • bundle install
  • Start a PostgreSQL server in the PostgreSQL app

  • Create the database

    • rake db:create
  • Migrate the tables

    • rake db:migrate
  • Seed the database with a few recipes and ingredients

    • rake db:seed
  • Start your rails server

    • rails s
  • Open index.html in your browser

  • Enjoy the app!

Video Demo

Blog Post

If you have any feedback for my application, don't hesitate to let me know. Thank you for checking it out!

rails-api-with-js-frontend-project's People

Contributors

racheladaw avatar

Watchers

James Cloos 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.