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
- Mongodb: Each item is a document in the DB
- Python Flask: Web Framework
- Python Gunicorn: WSGI HTTP Server
-
Common
#be6d26
-
Uncommon
#01b538
-
Rare
#0bbfff
-
Very Rare
#cf017b
-
Legendary
#b77a20
-
Story Item
#ff5901
-
Dark Grey
#1b1b1d
-
Blue Grey
#292d3e
Mongo collection is hosted on Atlas. The connection string is correct in both the app.py and db_tester.py files.
docker build -t bg3 .
docker run -d --name bg3 -p 8000:8000 bg3
- cd to the the project folder
pip install -r requirements.txt
gunicorn app:app
- Accessible on localhost on port 8000 by default. You can change using
gunicorn -b 0.0.0.0:8010 app:app
.
- Accessible on localhost on port 8000 by default. You can change using
- Add the following to the bottom of app.py
if __name__=="__main__":
app.run(debug=True)
- cd to the project directory/app
- Run
python app.py
- Pick an Act, Rarity, and Item Type
- Click Search