Skip to content

OSRIC AD&D (1st Edition) database management system

License

Notifications You must be signed in to change notification settings

Sparrow1029/DnDdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Database management API & Web application front-end for OSRIC players & DMs

Using FastAPI (Python), mongo db (with pymongo), and Next-JS (React)

Getting Started

Pre-requisites:

  • Docker & docker-compose
  1. Clone the repo
$ git clone https://github.com/Sparrow1029/DnDdb.git
  1. Build the application containers with docker-compose
$ cd DnDdb
$ dcomp up -d --build

Mongo

For the time being there is not a command to initialize the data for the database, so it will have to create it manually:

$ pip3 install pymongo  # make sure to have pymongo installed, in a virtualenv or otherwise
$ cd raw_data
$ python3 init_db.py

The above should populate the database with the data that is currently transposed from the OSRIC PDF.

The mongodb container should be running on localhost:27017

*NOTE: If you would like to interact with the mongodb from the CLI or with an application like MongoDB Compass the default connection string/URL for mongo is mongodb://dnd_admin:eulalia@localhost:27017

Fast API

To view the Swagger documentation generated by Fast API, visit http://localhost:8002/docs in a web browser.

Creating a user & characters can be done using Postman (*recommended)

(too lazy to post how to do it with curl right now lol)

Next-JS/React webapp

Visit http://localhost:3000 in a web browser to see the current state of the NextJS act (VERY MUCH still in early days...)

About

OSRIC AD&D (1st Edition) database management system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages