Code Monkey home page Code Monkey logo

bdo_chronicle's Introduction

BDO Chronicle

BDO Chronicle is a utility web site for the game Black Desert Online. It currently deals with Nodes and Crafting, although future endeavors can't be ruled out.

Build Status Coverage Status

Development

This is currently being developed by one person, so while Issues requesting features are welcome it may take a while. If you are interested in contributing, feel free to fork this repo and make pull requests.

Setup

This is Python project targeting Python3. As such, you will need that installed. I also recommend virtualenv and virtualenvwrapper and will provide instructions for those. I've heard good things about pyvenv but can't help with it.

Additionally, you'll probably want a local PostgreSQL server. For OSX I recommend Postgres.app.

Create the environment and clone your fork

You'll need to run command similar to these.

mkproject -p `which python3` bdo_chronicle

# This should move you to the new project directory

git clone [email protected]:<your_github_name>/bdo_chronicle.git

pip install -r requirements/dev.txt

This should get the project and its dependencies set up. However, you'll want to add some environment variables to the project's postactivate script.

# The script is typically located here:
#   ~/.virtualenvs/bdo_chronicle/bin/postactivate

export DJANGO_SETTINGS_MODULE=bdo_tools.settings.dev
export PYTHONPATH=$PYTHONPATH:<path to your projects dir>/bdo_chronicle/bdo_tools

export DJANGO_SECRET_KEY=supersecret

export BDO_DB_USER=<local postgres username>
export BDO_DB_PASSWORD=<if you have a local postgres password>
export BDO_DB_HOST=localhost
export BDO_DB_PORT=5432
export BDO_DB_NAME=bdo

After saving postactivate, you'll need to deactivate and workon bdo_chronicle. After re-initializing the virtualenv, you should be able to use the django-admin command.

Running the server

I have this project running on Heroku at bdo.zachsommers.com. Please email me if you'd like an account to check the project out. If you want to run your own instance, please feel free!

For development or personal use, running Django's development server is quite simple:

django-admin runserver

Running tests

Any contributed code is expected to also have tests. Ideally a pull request will not reduce the project's code coverage.

Running tests is a breeze:

py.test

# Get details, including test names
py.test -v

If you'd like to preview your test coverage before pushing to GitHub, you'll need some additional installs.

# You can use the CI requirements ...
pip install -r requirements/ci.txt

# ... or you can manually install the library
pip install pytest-cov

# Tests can now be run with coverage:
py.test --cov=bdo_tools

Project Layout

This is a basic overview of some of the structure that may not be immediately apparent.

Requirements and settings

You can see in both requirement/ and bdo_tools/bdo_tools/settings/ there are a number of files. In addition to base there are dev, ci, and prod. This allows all common requirements or settings to live in the repective base file while requirements or settings that only apply part of the time live in the specialized files. All of the specialized files import base.

bdo_chronicle's People

Contributors

zsommers avatar rlbaker avatar

Watchers

Luis Gomes avatar

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.