Skip to content

vttrtp/referral_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Referral App

This is a Django application that allows you to create a referral system that computes referral levels and bonuses depending on the referral user level.

Installation and running

  1. Clone repository
git clone https://github.com/vttrtp/referral_app.git
  1. Change into the project directory:
cd referral_app
  1. Install the required dependencies:
pip3 install -r requirements.txt
  1. Run database migrations
python3 manage.py migrate
  1. Import data
 python3 manage.py import_data data/data.json
  1. Start server
python3 manage.py runserver

Web API

To retrieve a single ReferralUser instance by its ID please make a Get request to http://127.0.0.1:8000/api/referral-users. For example http://127.0.0.1:8000/api/referral-users/01GTXNX97R9RRQ4JYVECEVA081

Running Tests

To execute tests please run:

python3 manage.py test

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages