mirror of
https://github.com/quantum5/peeringdb-mirror.git
synced 2025-04-24 10:11:58 -04:00
951 B
951 B
PeeringDB Mirror
This repository implements a simple, Django-based PeeringDB mirroring service
based on django-peeringdb
and peeringdb-py
.
Currently, this doesn't have full PeeringDB API compatibility, but there is a sufficiently strong foundation to make that dream easily achievable through a bit of Django metaprogramming. PRs welcome!
Installation
- Clone this repository:
git clone https://github.com/quantum5/peeringdb-mirror.git
; - Create a virtualenv:
python3 -m venv venv
; - Install dependencies:
pip install -r requirements.txt
; - Configure Django:
cp peeringdb_mirror/settings/{template,local}.py
and editpeeringdb_mirror/settings/local.py
. You should changeSECRET_KEY
and updateDATABASES
. See the linked Django documentation for details; - Migrate database:
python manage.py migrate
; - Run the WSGI app
peeringdb_mirror.wsgi:application
with your favourite WSGI-capable application server.