Giter Site home page Giter Site logo

dnd5e-api-python's Introduction

D&D 5e API

Stories in Ready

This project started because a friend and I were trying to build a character creator in Rails for 5th Edition. With the amount of data required we decided to try and split the project into three parts. The API which you will see here, a gem wrapper library for the API that can be included on any Ruby project, and then the character creator itself.

This is still under development so excuse the mess of code.

Requirements

This project uses a Python virtual environment to handle dependencies, but you will need to install direnv to properly handle the setting of global variables in the environment.

Once direnv is installed and configured you will need to cd into the project directory and create a file called .envrc. Copy and past the following lines into this file:

source venv/bin/activate
export FLASK_APP="run.py"
export SECRET="YOUR_SECRET_STRING"
export APP_SETTINGS="development"
export DATABASE_URL="postgresql+psycopg2://USERNAME:PASSWORD@localhost/dnd5e_api"

Replace the secret string, and username and password with your information then save the file. Once saved it might prompt you to allow this file to be executed by direnv, you simply need to type direnv allow. This means that any time you change into this directory it will execute the lines inside of this file. This activates your virtual environment and sets a few of the environmental keys that are required.

To install the python dependencies you need to run pip install requirements.txt or pip3 install requirements.txt depending on which version of Python you have installed. This project was developed using Python 3.5.

dnd5e-api-python's People

Contributors

breynolds-dev avatar firedrow avatar waffle-iron avatar

Stargazers

Calvin Ferraro avatar  avatar

Watchers

James Cloos avatar  avatar Brennan Holtzclaw avatar  avatar

Forkers

waffle-iron

dnd5e-api-python's Issues

Add urls to the race index page

Currently the race index page looks similar to this:

{
"id": 12,
"name": "Gnome",
"subrace": "Deep Gnome"
},

We need to add a url entry that links to the race and subrace (if possible)

Game Glossary

Should we include an endpoint that has entries for glossary items like Inspiration, Alignment, etc?

Spells

This is an epic card that is going to require a little bit of breaking out into smaller more manageable chunks

Levels

Need to add levels for each class & subclass into existing system

Subclasses

Need to add subclasses data into the existing class endpoints

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.