wave-server
Runs the middleware server that bridges the frontend with the Python backend and the PSQL Database
How to execute the Service
- Open 3 terminals
- One in
wave-server
- One in
wave-recommender
- One in
wave-server/testing_files
- One in
- In (1), run
node index.js
- If dependencies are missing, run
npm install
- If dependencies are missing, run
- In (2) run
python3 Link.py
- If dependencies are missing
python3 pip install -r requirements.txt
)
- If dependencies are missing
- In (3) run
python3 random_wardrobe_generation.py
and observe the outputs on the other terminals with a sample wardrobe - Now you can use the
requests
module in Python (or you can use Node) to call HTTP endpoint requests to observe the process' behavior
Clothing Types
Shirts --> "%S"
- Tank Top :
TATS
- Button Up :
SBUS
- Tee :
STES
- Polo Shirt :
SPOS
- Graphic :
SGRS
- Athletic :
SATS
- Long Sleeve Button Up :
LBUS
- Long Sleeve Polo :
LPOS
- Long Sleeve Tee :
LTES
- Long Sleeve Graphic. :
LGRS
- Long Sleeve Athletics :
LATS
- Flannel :
FLAS
Overtops --> "%T"
- Sweatshirt :
SWST
- Hoodie :
HOOT
- Blazer :
BLZT
Jackets --> "%C"
- Jacket : 'JAKC'
- Coats : 'COAC'
- Vest : 'VESC'
- Puffer : 'PUFTC'
Pants --> "%P"
- Skirt :
SKIP
- Yoga pants :
YOGP
- Cargo Pants :
CARP
- Jeans :
JEAP
- Sweatpants :
SWTP
- Track Pants :
TRAP
- Dress Pants :
DRSP
- Pajamas :
PJMT
Shorts --> "%H"
- Regular :
RGSH
- Swimshorts :
SWMH
- Sweatshorts :
SWSH
- Athletic Shorts :
ATSH
Shoes --> "%O"
- Sneakers :
SNEO
- Runners :
RUNO
- Boots :
BOTO
- Dress :
DRSO
- Sandals :
SNDO
- Flip Flops :
FLIO
- Heels :
HELO
- Flats :
FLTO
Hats. --> "%A"
- Beanie :
BENA
- Baseball :
BASA
- Snapback :
SNPA
- Bucket :
BCKA
- Visor :
VIZA
- Regular Hat. :
HATA
Misc. --> "%X"
- Dress :
DREX
- Tux :
TUXX
Occasion codes
- Workout :
WK
- Formal :
FF
- Semi Formal :
SF
- Casual :
CS
- BeachDay/Outdoors :
BD
- Comfy/Lazy :
LZ
Weather Codes
- Cold :
C
- Hot :
H
- Rainy :
R
- Sunny :
S
- Snowy :
N
- Typical :
T