ElijahLawson / divvy-tips

Tip Pooling Web Application to alleviate the pain of calculating tips at the end of a bar shift.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

License Repo Size TOP_LANGUAGE FORKS Stars

Divvy Tips

Table of Contents

Description

Divvy Tips is a mobile-focused responsive web application that looks at alleviating the pain and time-consuming task of having to calculate the hours, credit card and cash tips, and bar back cut for bartenders that are “running” the money at the end of the night. It allows bartenders to log in, submit their hours, and submit their credit card tips for their respective drawer. This information is stored so, whoever is running the money, will be able to press a couple buttons and receive a detailed quick divvy table. This application can save up to three hours, depending on the bar size, at the end of a long bartending shift.

Prerequisites

Before you get started, make sure you have the following software installed on your computer:

Create database and table

Create a new database called prime_app and create a user table:

CREATE TABLE "user" (
    "id" SERIAL PRIMARY KEY,
    "username" VARCHAR (80) UNIQUE NOT NULL,
    "password" VARCHAR (1000) NOT NULL
);

If you would like to name your database something else, you will need to change prime_app to the name of your new database name in server/modules/pool.js

Development Setup Instructions

  • Run npm install
  • Create a .env file at the root of the project and paste this line into the file:
    SERVER_SESSION_SECRET=superDuperSecret
    
    While you're in your new .env file, take the time to replace superDuperSecret with some long random string like 25POUbVtx6RKVNWszd9ERB9Bb6 to keep your application secure. Here's a site that can help you: https://passwordsgenerator.net/. If you don't do this step, create a secret with less than eight characters, or leave it as superDuperSecret, you will get a warning.
  • Start postgres if not running already by using brew services start postgresql
  • Run npm run server
  • Run npm run client
  • Navigate to localhost:3000

Once you're logged in, click add tips to add your tips and hours to the shift. At the end of the night, one individual will "Run the Money", and confirm all of the changes needed

License

MIT License

Acknowledgements

This goes out to all of my prime cohort and my instructors, Matt and Andrew. Without all these people, I wouldn't have been able to execute a fifth of this project.

Contacts

About

Tip Pooling Web Application to alleviate the pain of calculating tips at the end of a bar shift.


Languages

Language:JavaScript 99.4%Language:HTML 0.3%Language:CSS 0.3%