GithubHelp home page GithubHelp logo

isabella232 / agile-solicitation-builder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 18f/agile-solicitation-builder

0.0 0.0 0.0 23.99 MB

This repository is archived and deprecated. Please see the USDS Agile Solicitation Builder for current updates.

Home Page: https://github.com/usds/agile-solicitation-builder

License: Other

JavaScript 82.48% HTML 0.10% CSS 7.82% Python 9.53% Shell 0.06%

agile-solicitation-builder's Introduction

#This repository is archived and deprecated. Please see the USDS Agile Solicitation Builder for current updates.

Stories in Ready

Master: Build Status

About Agile Solicitation Builder (Formerly Playbook in Action)

The intent of this tool is to assist in the creation of requirements documents for agile software development using best practices from the USDS Playbook and TechFAR. In the alpha release the tool can help Contracting Officer working with Program Managers develop an RFQ for a firm-fixed price procurement.

Local Installation

Clone the repository

git clone https://github.com/18F/agile-solicitation-builder.git

Flask app

Create a virtual environment with Python 3.5.1 To create a virtualenv setup on mac check out this gist.

# pyenv install 3.5.1
pyenv local 3.5.1
mkvirtualenv asb
pip install -r requirements.txt

Create the database.

If you do not have postgresql installed run:

brew install postgres
initdb /usr/local/var/postgres

To create an app database run:

createdb your_database_name
export DATABASE_URL=postgresql://localhost/your_database_name

Replacing your_database_name with the db you'd like.

You can then seed the database by running:

flask -a server.py seed_db

Install the Front end.

If you plan on developing the front-end, make sure you have npm installed (brew install npm). Then run:

cd app
npm install
npm install -g gulp
gulp
cd ..

Start the app

From the root directory of the project run

python server.py

Further Development

Watching changes

When performing any front-end changes please run gulp developing.

Adding a new page

To add a new "questions" page (all pages are listed in the right sidebar):

  • Create a new file in the questions folder.

  • See XX_sample.js to get an idea of what needs to be included in a page.

  1. Update the states to reflect the data fields you would like to collect on the page. (On line 6)

  2. Update the page number to order in the questions list on line 12. (This will need to match the custom components in the backend)

  3. Update the name of the React class (line 14) to ComponentName (reflecting your component) and change that to the same on line 74.

  4. Update the render function to reflect your states that need to be changed, and add additional components as needed. (Lines 55-70)

  • To make the page visible in and accessible from the side bar you must add it to question_list.js.

  • Make sure you have run gulp or are running gulp developing to update the resulting javascript file.

  • Update the create_document.py file.

  1. Add a function to add the custom text:
def component_name(document, rfq):
    document.add_heading("XX. Name of Section", level=BIG_HEADING)
    component_name = session.query(ContentComponent).filter_by(document_id=rfq.id).filter_by(section=XX).first()
    document.add_paragraph(component_name.text)

    return document

Add additional dictionary in the content_components list in seed.py, for each additional field (state on the front end)

You will likely need to run seed.py or add sample text to the database to prevent API errors. In the future, these errors will be handled.

  1. and add a line in the create_document function
document = component_name(document, rfq)
  1. Add the section to the section array in the overview function
Removing an existing page
  • Delete the corresponding page file from the questions folder

  • Remove the reference to the question from question_list.js.

  • Remove the reference from seed.py.

  • Remove the function from the create_document.py file and the create_document function of the same file, and from the section variable in the overview function.

Modifying the content

Content that can be modified is created in seed.py. There are 3 types of content, ContentComponents, CustomComponents, and Deliverables. Content types are declared in models.py.

To remove content you need to both remove the content object from seed.py and if it is referenced by name on a page you need to remove that reference. CustomComponents are not referenced individually so this second step is not necessary.

Please note that any documents created prior to the removal or addition of new content will be incompatible and will break the site so they should be deleted as soon as the changes go live.

The API

The code for the API can be found in server.py. Each "questions" page (found in the "questions" folder) calls a function in helpers.js. which in turn sends an ajax request to server.py which sends the request to the database.

Creating a Word Document

This is managed in the file create_document.py. Currently everything is added to the document manually.

Node Dependencies

This project uses the following node modules:

  • babel-preset-react
  • babelify
  • browserify
  • gulp
  • gulp-notify
  • gulp-rename
  • history
  • react
  • react-bootstrap
  • react-dom
  • react-flexbox
  • react-router
  • reactify
  • vinyl-source-stream
  • watchify

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.

agile-solicitation-builder's People

Contributors

fureigh avatar jcscottiii avatar jonmost avatar juliawinn avatar lauraggit avatar mgwalker avatar stroupaloop avatar stvnrlly avatar tbuckley avatar waffle-iron avatar wslack 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.