Skip to content

An NPS dashboard built with django backend and react frontend.

License

Notifications You must be signed in to change notification settings

jak0203/nps-dash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPS Dashboard

  1. Install packages

    $ pip install -r requirements.txt
    
  2. Set up database in dashboard/settings.py

    • The default is a sqllite db - if you want to use this you don't need to change anything
  3. Run DB migrations

    $ python manage.py migrate
    
  4. Create a superuser

    $ python manage.py createsuperuser
    
  5. Run the Django server

    $ python manage.py runserver
    
  6. Log into the Django admin panel and import data into the Nps/Raw Results table and the Nps/Products table

    • You can modify/use the following script to prep your files for import
    $ python manage.py convert_file {input_file} {output_file} new
    
  7. Update the global variables in the aggregation scripts and run the scripts

     $ python manage.py calculate_nps
     $ python manage.py calculate_nps_product
     $ python manage.py calculate_client_deltas
    
  8. Run the React Server

     $ cd frontend
     $ npm install
     $ npm start
    

You're ready to go!

Alt text Alt text

About

An NPS dashboard built with django backend and react frontend.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published