Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chiditarod/routemaster

Django app that calculates routes for the CHIditarod
https://github.com/chiditarod/routemaster

Last synced: about 1 month ago
JSON representation

Django app that calculates routes for the CHIditarod

Awesome Lists containing this project

README

        

# Routemaster
_Route generator software for CHIditarod_

Warning, this code is uggggly. Somehow, every year, I'm able to get it to run. YMMV.

Basically it is a traveling salesman solver. There is a starting line, a
finish line, and a configurable amount of checkpoints in-between. You
first add the various checkpoints, add the distances between them all, set a few params like # of teams,
the # of checkpoints, etc, then hit go, and it figures out the best routes.

The codebase is written in [Python](https://www.python.org/), and it uses an old version of the [Django](https://www.djangoproject.com/) web framework.

## To Install
Read [INSTALL.md](https://github.com/chiditarod/routemaster/blob/master/INSTALL.md)

## Usage

1. Activate the python virtual environment

cd path/to/routemaster/repo
. ~/.python/Virtualenvs/routemaster/bin/activate

1. Run Locally

python manage.py runserver

1. Visit URLs

- http://localhost:8000/admin - Configure the races, checkpoints, etc
- http://localhost:8000/races - Run the calculations

## TODO
Rewrite this in something fun.

## etc

### How to install a new pip module

$ bin/pip-install

### Run Local Django Console
```bash
cd path/to/routemaster
python manage.py shell
```

#### print settings
```python
from django.conf import settings
print settings.
```

### Users
devin / mush