Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
bin
 
 
 
 
db
 
 
lib
 
 
log
 
 
 
 
 
 
 
 
tmp
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Okay, should we get some coffee? ☕️

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published