GithubHelp home page GithubHelp logo

codeforamerica / wexplorer Goto Github PK

View Code? Open in Web Editor NEW
3.0 11.0 5.0 1.25 MB

License: BSD 3-Clause "New" or "Revised" License

Shell 0.63% Python 15.81% Mako 0.13% JavaScript 75.73% CSS 2.00% HTML 5.70%

wexplorer's Introduction

Wexplorer has been folded into the Pittsburgh Purchasing Suite and is no longer being maintained.

W:/Explorer

NOTE: Wexplorer has been deprecated in favor of the pittsburgh-purchasing-suite's Scout tool. This app now redirects to https://www.buildpgh.com

W-Drive Online

W:/Explorer (or just wexplorer) is Team Pittsburgh's digitization effort of a list of City of Pittsburgh contracts that started out as an Excel spreadsheet on the City's shared W-Drive.

Current Features

  • Quick search of company names & contract descriptions
  • Contract & company pages with more information about contracts/companies/contacts
  • Ability to add lists of items purchased from these contracts

Planned & In Development Features

  • Crowdsourced metadata about contracts

Quickstart

It is highly recommended that you use use virtualenv (and virtualenvwrapper for convenience). For a how-to on getting set up, please consult this howto.

Then run the following commands to bootstrap your environment. You will need to make sure that you have a database to work with and that it is configured properly. If you don't include information about how to configure the database in your environment, wexplorer will look for a db named w_drive.

# clone the repo
git clone https://github.com/bsmithgall/wexplorer
# change into the repo directory
cd wexplorer
# install python dependencies
pip install -r requirements.txt
# upgrade your database to the latest version
python manage.py db upgrade
# run the server
python manage.py server

NOTE: If this is the first time that you are working with wexplorer, be sure to run the following command (before starting your server) to stamp your database and allow for future migrations:

python manage.py db stamp head

Deployment

In your production environment, make sure the WEXPLORER_ENV environment variable is set to "prod".

Shell

To open the interactive shell, run ::

python manage.py shell

By default, you will have access to app, db, and the User model.

Running Tests

To run all tests, run ::

python manage.py test

Migrations

Whenever a database migration needs to be made. Run the following commmands: ::

python manage.py db migrate

This will generate a new migration script. Then run: ::

python manage.py db upgrade

To apply the migration.

For a full migration command reference, run python manage.py db --help.

wexplorer's People

Contributors

bsmithgall avatar hamhands avatar msknee avatar

Stargazers

Cyd Harrell avatar Mathias Gibson avatar

Watchers

Michal Migurski avatar Becky Boone avatar James Cloos avatar  avatar Mari avatar Nicole Neditch avatar Amir Hadjihabib avatar  avatar Zoe Blumenfeld avatar Will Tyner avatar  avatar

wexplorer's Issues

Figure out way to update data

Right now the data for the app is stale (a bunch of new contracts have been added, updated, and removed). We need to figure out a plan to keep the app "fresh"

Allow deletion or editing of purchased items

You should be able to delete items. Eventually, additions and deletions should be tied to accounts and only certain users should able to do these things (maybe OAuth because everything is on Google in Pittsburgh?)

Right now, though, you can just add items and there's no way to delete or edit them.

List of vendors + contracts used by a specific department

From Debra's feedback on 5/6: the goal of this feature would quickly show a list of contracts used by her department, I&P. When she's paying a stack of invoices, she prefers to see a list of vendors (like on her paper spreadsheet), instead of looking up vendors one at a time in Wex.

Ideas for implementing:

  • Use departments already associated with contracts (and consequently, vendors) from Bill/Ed's spreadsheet
  • Create lists from contracts your team is following

Add "Last updated" text

Add last date the data was refreshed, so that a city purchaser knows how recent the info on the page is.

  • in black in the footer perhaps?

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.