项目作者: JackRKelly

项目描述 :
A food inventory management application built using React.js, Node.js, Express.js, and PostgreSQL.
高级语言: JavaScript
项目地址: git://github.com/JackRKelly/FridgeMan.git
创建时间: 2020-03-29T15:55:04Z
项目社区:https://github.com/JackRKelly/FridgeMan

开源协议:MIT License

下载


FridgeMan

A Full-Stack food inventory management application built using React.js, Node.js, Express.js, and PostgreSQL.


Windows Build Instructions:

Database Setup:

  1. Login to PostgreSQL
    1. psql -Upostgres
  2. Create Fridge Man database, and connect to the database.
    1. CREATE DATABASE fridgeman;
    2. \c fridgeman
  3. Create stock, users, and location tables.
    ```
    CREATE TABLE stock {
    stock_id SERIAL PRIMARY KEY,
    name varchar(50) NOT NULL,
    quantity integer NOT NULL,
    location varchar(50) NOT NULL,
    expiration varchar(300) NOT NULL,
    email varchar(150) NOT NULL
    };

CREATE TABLE users {
id SERIAL PRIMARY KEY,
email varchar(150) UNIQUE NOT NULL,
password varchar(255) NOT NULL
};

CREATE TABLE location {
location_id SERIAL PRIMARY KEY,
name varchar(50) NOT NULL,
email varchar(150) NOT NULL
};

  1. ### Client & Server Setup:
  2. 1. Clone the source repository from Github.

git clone https://github.com/JackRKelly/FridgeMan.git

  1. 2. Navigate to server directory, install server dependencies, create env file (You will have to manually edit the env file to fit your credentials).

cd FridgeMan/server
npm install
call touch .env
echo import DB_USER=postgres >> .env
echo import DB_PASSWORD=PASSWORD >> .env
echo import DB_NAME=DB_NAME >> .env
echo import SECRET=SECRET_KEY >> .env
echo import SALT_LENGTH=10 >> .env

  1. 3. Navigate to client directory and install dependencies and create production build

cd ../client
npm install
npm run build

  1. 4. Start server and view at http://localhost:5000 (port defined in /server/index.js)

cd ../server
nodemon index
```


Screenshots:

Home Page
Signup Page
Login Page
Navigation Menu
Stocks Page
Locations Page