Skip to content

jenaym/Liquid-Assets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Liquid Assets

Background: Bar Inventory

  • Taking bar inventory is a long daunting task
  • Measurement of liquor is often inaccurate
  • Inventory tracking is important for profitability

Our Goals & Motivations

  • Develop an app to take bar inventory easier
  • Improve accuracy of remaining liquor measurement
  • Produce meaningful reports to help bar business profitability

Prerequisites

  • Local development installation
    • Node.js https://nodejs.org/
      • npm -- should come with Node.js installation
    • MySQL server needs to be up and running with all CRUD priviledges.

Quick Start

  1. Clone the repository

    git clone git@github.com:jenaym/Project-3.git
    cd Project-3
    
  2. Install dependencies

    npm install
    npm install -g nodemon sequelize-cli
    
  3. Create the database. Run server/db/sql/schema.sql with mysql command or in the workbench.

  4. Edit config/config.js and adjust database configurations.

  5. Create a .env file and add the following settings

    DB_PASSWORD=<your database password for MySQL>
    JWT_KEY=<your secret key string>
    
  6. Run migration and seeding

    sequelize db:migrate
    sequelize db:seed:all
    
  7. Launch Project-3

    npm start
    

Troubleshooting

  • To undo a migration or seeding, run the following:
    sequelize db:migrate:undo:all
    sequelize db:seed:undo:all
    

Deployment

Built With

  • Node.JS - an asynchronous event driven JavaScript runtime
  • Express - Fast, unopinionated, minimalist web framework for Node.js
  • React - A JavaScript library for building user interfaces
  • MySQL - The world's most popular open source database
  • Sequelize - a promise-based ORM for Node.js and io.js
  • MATERIAL-UI - React components that implement Google's Material Design
  • React Autosuggest - WAI-ARIA compliant autosuggest component built in React
  • Redux - A predictable state container for JavaScript apps
  • react-csv - Generate a CSV file from given data
  • Passport - Simple, unobtrusive authentication for Node.js
  • gravatar - Node.JS library to generate gravatar URLs
  • ... and more

Authors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published