Git Product home page Git Product logo

central-perk's Introduction

Central Perk

A coffee shop, point-of-sale application build with Ruby on Rails.

☕️

Installation

  1. Fork the repository
  2. Clone the files to your computer
  3. Run bundle install
  4. Run rake db:migrate
  5. Run rails s to start the server

Seeding the Database

To test out the app using dummy data, follow these steps.

  1. In the root level of the directory, create a .env file
  2. Add the following, replacing your_password with a string to .env. This will be the login for the user account Gunther. All seed orders will belong to and be nested under Gunther.
PASSWORD=your_password
  1. Run rake db:seed to populate the database with a user (Gunther), orders and menu items.

Enable Google Login

To enable oAuth with Google login, add the following to the .env file, replacing the string YOUR_CLIENT_ID and YOUR_CLIENT_SECRET with a your Google Client ID and Secret.

GOOGLE_CLIENT_ID="YOUR_CLIENT_ID"
GOOGLE_CLIENT_SECRET="YOUR_CLIENT_SECRET"

Detailed instructions on creating the Google Client keys can be seen here: Google Authentication Strategy for Rails 5 Application

Note: Since the .env file contains sensitive information, it should not be tracked, committed or push to Github. Please see this post on Hiding Sensitive Information with Environmental Variables in Ruby for more information.

Plans for the future

  • Add most_popular flag to menu items on the order page
  • Sort menu_items alphabetically on new order page
  • Images and descriptions with menu_item selections

Additional Links

central-perk's People

Contributors

scrabill avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

shantanu609

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.