This repository has been archived by the owner. It is now read-only.
(Inactive) The SBIR-EZ project, whose goal is to simplify the process of participating in the Small Business Innovation Research Program
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
afsbirez
chef
data
requirements
sbirez
tests/client
.about.yml
.bowerrc
.buildpacks
.cfignore
.editorconfig
.gitattributes
.gitignore
.jshintrc
Aptfile
CONTRIBUTING.md
LICENSE.md
README.md
apiary.apib
bower.json
generate_fixtures.sh
karma-e2e.conf.js
karma.conf.js
manage.py
manifest.yml
package.json
requirements.txt
runtime.txt
workflow_setup.ipynb

README.md

SBIR-EZ

Build Status

The SBIR-EZ (sih-bur-easy)project, provides a web service and user interface abstraction over the Small Business Innovation Research Program suite of tools used by SBIR.gov, DoDSBIR.com and various agency tools. The intent is that users may have a uniform interface to:

  • Research existing and past SBIR solicitations
  • Save opportunities for later processing
  • Apply to opportunities independently of the owning agency
  • Track the status of applications
  • Receive and send communications
  • View benchmarks

Please file issues at the central repository for all Air Force Small Business repo

Installation

  • Install Postgresql
  • Install Python 3.4.1
  • Install pip
  • Install virtualenv
$ git clone https://github.com/18F/afsbirez.git
$ cd afsbirez
  • Make a virtualenv

The directory hosting the virtualenv can be anywhere you want; keeping it here within the afsbirez directory aids in clarity.

$ mkdir env
$ virtualenv-3.4 ./env
  • Activate the virtualenv
$ source env/bin/activate
  • Install project requirements
$ pip install -r requirements.txt

You should now see (env) on your command prompt:

$ (env)[afsbirez]
  • Install the latest Node.js

  • Update NPM to the latest version

$ npm install npm -g
  • Install the bower command line clients, as well as the karma test runner.
$ npm install
  • install client side dependencies via bower
$ bower install

Configure the database

Check your pg_hba.conf file on your system to allow local connections without passwords. pg_hba.conf location varies from system to system; to find yours, you can use

psql -t -P format=unaligned -c 'show hba_file' template1

Your hba.conf should have the following lines already in place:

local   all             all                                     trust
host    all             all             127.0.0.1/32            trust

Create a database and role with your system user name

$ psql -c "create user afsbirez with superuser password 'afsbirez';" -U postgres
$ psql -c 'CREATE DATABASE afsbirez WITH OWNER afsbirez;' -U postgres

Create the database tables on 'afsbirez'

$ python manage.py syncdb

Running the Server using the Werkzeug built-in run_simple WSGI server. Please note that this is for

development only.

$ python manage.py runserver

Running Python Tests

$ python manage.py test

Running Javascript Tests

Install Karma globally

npm install -g karma-cli

Run tests

karma start

Run tests in multiple browsers

karma start --browsers Firefox,Chrome

License: Public Domain

This project is in the worldwide public domain. As stated in CONTRIBUTING:

This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.

All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.