Skip to content

brett-jpy/bg3items

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BG3 Item Viewer

The original data was pulled from the Google Sheet provided by Reddit User EgonThyPickle via this post

The image URLs are all scraped from the BG3 Wiki

If you want just the JSON, it can be found here

Projects Used

  • Mongodb: Each item is a document in the DB
  • Python Flask: Web Framework
  • Python Gunicorn: WSGI HTTP Server

Design

Colors

  • Common #be6d26

  • Uncommon #01b538

  • Rare #0bbfff

  • Very Rare #cf017b

  • Legendary #b77a20

  • Story Item #ff5901

  • Dark Grey #1b1b1d

  • Blue Grey #292d3e

Docker

Mongo collection is hosted on Atlas. The connection string is correct in both the app.py and db_tester.py files.

Build

docker build -t bg3 .

Run

docker run -d --name bg3 -p 8000:8000 bg3

Running Without Docker

Linux

  1. cd to the the project folder
  2. pip install -r requirements.txt
  3. gunicorn app:app
    1. Accessible on localhost on port 8000 by default. You can change using gunicorn -b 0.0.0.0:8010 app:app.

Windows

  1. Add the following to the bottom of app.py
if __name__=="__main__":
    app.run(debug=True)
  1. cd to the project directory/app
  2. Run python app.py

Use

  1. Pick an Act, Rarity, and Item Type
  2. Click Search

example