Skip to content
Peer-to-Peer lending app in partnership with Linda Vista Library
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Peer-to-Peer Lending


Peer to Peer lending is a web application actively being developed by Open San Diego in partnership with the San Diego Linda Vista Library branch to facilitate community peer-to-peer lending. The goal is to help community members share books and media outside of the SD Library's collection (specifically foreign language books) with the help of the library. The Library staff will faciltate the loans with this application so that there is both trust and anonymity in the lending.

Read more in the Project Brief.


We are currently at the Proof-of-Concept stage, and hoping to get to Minimum-Viable-Product soon. For more information on contributing, please review the Project Brief.

The project files consist of a Django 2 Application in conjunction with a React.js front-end.

Developing Locally

To work locally, you can spawn both the frontend and backend seperately.

Back End Developing

To run the backend you are going to need to create a virtual environment

> virtualenv venv
> source venv/bin/activate
> pip install -r requirements.txt
> cd p2plending
> ./ migrate
> cd frontend
> npm install .
> npm run build
> cd ..
> ./ runserver

You can also generate backend test data by running the following command:

> ./ generate_test_data 100

You can also create a superuser account to manage the backend

> ./ createsuperuser

Front End Developing

To get a responsive frontend development environment on the frontend, run the following commands

> cd p2plending/frontend
> npm install .
> npm run start
> open http://localhost:8080/

Setting Up - Docker

Alternatively, the quickest way to get going is to use Docker:

> docker-compose up

This will give you a running app on http://localhost:8000, but no admin user or data. To create the admin user, run:

> docker-compose run web python createsuperuser
> docker-compose up

You can then access the admin interface at http://localhost:8000/admin/

Docker Testing

To run tests, you can do:

> docker-compose -f docker-compose-test.yaml up
You can’t perform that action at this time.