GithubHelp home page GithubHelp logo

sephcoster / complaint Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cfpb/complaint

0.0 1.0 0.0 1.15 MB

Submit a complaint and Consumer Complaint Database websites

License: Creative Commons Zero v1.0 Universal

Python 9.94% HTML 63.86% JavaScript 15.80% Shell 0.61% CSS 9.79%

complaint's Introduction

Build Status Coverage Status

complaint

Standalone Django project that runs the Consumer Complaint Database application.

Consumer Complaint Database website screenshot

Dependencies

Setup

  1. Set up virtual environment:
mkvirtualenv ccdb
workon ccdb
  1. Install Django 1.8.14 and Python dependencies:
pip install -r requirements.txt
  1. Run server locally:
python manage.py runserver
  1. To set up the front end, first install Gulp if you don't have it:
npm install --global gulp
  1. Install Autoenv if needed:
$ pip install autoenv
  1. Copy .env_SAMPLE to .env and cd into root directory to execute .env.
cp .env_SAMPLE .env
cd ../complaint
  1. Run the front end build script to compile JavaScript, CSS, and image assets:
sh ./setup.sh
  1. Go to landing pages:

Installing app to your project

The Complaint Database and Complaint apps can be installed into other Django projects by doing the following:

In your Django project url.py, you will need to include the following in your urlpatterns list for each app:

url(r'^complaint/', include('complaint.urls')),
url(r'^complaintdatabase/', include('complaintdatabase.urls')),

In your Django project settings.py, you will need to include the following in your INSTALLED_APPS tuple:

'complaint_common',
'complaint,
'complaintdatabase’,

Add this to your requirements.txt file:

-e git+https://github.com/cfpb/complaint.git#egg=complaintdatabase

Then run the requirements.txt file in your terminal your virtual environment:

pip install -r requirements.txt

Testing

For Python/Django tests, in the base directory, run the following:

pip install -r test_requirements.txt
./pytest.sh

complaint's People

Contributors

amymok avatar cfarm avatar contolini avatar higs4281 avatar laurenancona avatar niqjohnson avatar rosskarchner avatar sebworks avatar stephanieosan avatar virginiacc avatar willbarton avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.