Skip to content

Latest commit

 

History

History
55 lines (32 loc) · 1.7 KB

README.md

File metadata and controls

55 lines (32 loc) · 1.7 KB

Common Funding Application

CircleCI Coverage Status

The Common Funding Application is an online application that allows student groups and organizations to request funding from various funding sources at the University of Pennsylvania.

Local Backend Setup

  • Install pip

  • Install mysql_config (Ubuntu: apt install libmysqlclient-dev / MacOS: brew install mysql-connector-c)

  • Install python dependencies (pipenv install --dev)

  • Enter the python virtual environment (pipenv shell)

  • Migrate database (python manage.py migrate)

  • Import dummy data (python import_demo.py)

  • Run the server (python manage.py runserver)

  • Navigate to the app

Front-End Setup

  • Install node.js

  • Install Mocha (sudo npm install -g mocha)

  • Run tests (mocha app/static/test/)

DB migrations

  • Edit models.py

  • python manage.py makemigrations

  • python manage.py migrate

Environment Variables

In development, you do not need to add any environment variables. However, in production, there are a few that need to be set:

DEBUG=False
SENDGRID_USERNAME=pennlabs
SENDGRID_PASSWORD
SECRET_KEY
DATABASE_URL

Contributors