# LabWise
Lab inventory management service

## SITE IS LIVE @ labwise.wahwa.com

## PUSHES TO MAIN SHOULD TRIGGER A REBUILD OF THE SITE

## How to run on localhost
### First-Time Setup:
```bash
# 1
npm install

# 2
psql CREATE USER labwise WITH PASSWORD 'labwise_dev_pw';
psql CREATE DATABASE labwise_db OWNER labwise;
psql GRANT ALL PRIVILEGES ON DATABASE labwise_db TO labwise;
psql postgresql://labwise:labwise_dev_pw@localhost:5432/labwise_db -f server/src/db/schema.sql

# 3
cd server && npm install && npm run db:migrate
cd ..

# 4
npm run dev
```

### Every time after the first:
```bash
npm install
cd server
npm install
npm run db:migrate
cd ..
npm run dev
```