Nenhuma descrição

Lee Morgan 193772dbaa Bug fix: logging in stored the merchant rather than its id to session. 5 anos atrás
controllers 193772dbaa Bug fix: logging in stored the merchant rather than its id to session. 5 anos atrás
emails d711a85018 Change password reset email to be mostly plaintext. 5 anos atrás
models ee25808b75 Update the merchant model to have better location data on merchants. 5 anos atrás
views 480270566f Update merchant.ingredients to merchant.inventory on the frontend for clarity. 5 anos atrás
.gitignore d9ffe84979 Add cssmerger so that I can modularize the css. 5 anos atrás
README.md e0c3a4cc74 Update README 5 anos atrás
app.js 638beb1b35 Update db auth stuffies. 5 anos atrás
middleware.js 47d0d29945 Users can now log in. 5 anos atrás
package-lock.json 2e032f2dfb Update cssmerger. 5 anos atrás
package.json 2e032f2dfb Update cssmerger. 5 anos atrás
routes.js 3b575bf55a Bug fix: could not upload recipe spreadsheets due to the square stuff that was aborted. 5 anos atrás
validator.js b6bd335d90 Add backend for creating and setting up new merchant from square. 5 anos atrás

README.md

Subline Inventory Management

Introduction

Subline Inventory Management is a system for companies to track, update and manage their inventory in real time. It is also a tool for gathering and analyzing data on inventory in order to better manage future costs and reduce food waste for restaurants.

The project is a hybrid single page app. After log in, users are given a single page app for interacting with the platform. Everything other than that (landing page, log in, help, etc.) is a more traditional website.

Technologies

  • HTML (ejs)
  • CSS
  • Nodejs
  • Javascript
  • MongoDB

NPM packages

  • axios
  • bcryptjs
  • compression
  • cookie-session
  • ejs
  • express
  • mailgun-js
  • mongoose
  • browserify (dev)
  • watchify (dev)

Setup

  1. Install MongoDB https://docs.mongodb.com/manual/installation/

  2. Ensure node is installed. Install if not. Version 10 or higher. $ node --version https://nodejs.org/en/

  3. $ git clone https://github.com/The-Subline/Inventory-Management.git

  4. $ npm install

  5. $ npm install -g nodemon (only if you are developing or adding code)

  6. Create two environment variables: PORT="8080" SUBLINE_DB="mongodb://localhost/InventoryManagement" SITE="localhost:8080" NODE_ENV="development

    Mac/Linux Instructions:

    1. Open '.bashrc' or .bash_profile' from the home directory
    2. Type the two variables at the bottom file
    3. Save file
    4. Close and re-open terminal

    Windows Instructions: https://ubuntu.com/download/desktop

  7. $ sudo service mongod start

  8. $ nodemon app.js (if developing) $ node app.js (to view)

  9. Open a browser and go to 'localhost:8080'