Git Product home page Git Product logo

capstone2022's Introduction

Capstone2021

A client/server application to ownload Regulations.gov.

Setup

  • Create and activate a virtual environment

    python3 -m venv .venv
    source .venv/bin/activate
    
  • Install source code as a module

    The project is organized into multiple modules, which must each be installed as "editable" (using the -e switch on pip):

    pip install -e mirrulations-client
    pip install -e mirrulations-core
    pip install -e mirrulations-dashboard
    pip install -e mirrulations-mocks
    pip install -e mirrulations-work-generator 
    pip install -e mirrulations-work-server
    

Configuration Files

The client and work generator use environment variables to load key values. You can either set the relevant values as environment variables or create a .env file in the relevant module:

  • mirrulations-client

    Place the .env file in the mirrclient folder:

    WORK_SERVER_HOSTNAME=work_server
    WORK_SERVER_PORT=8080
    API_KEY=YOUR_KEY
    
  • mirrulation-work-generator

    Place the .env file in the mirrgen folder:

    API_KEY=YOUR_KEY
    

    To get an api key, visit here. Check client docs for more information.

Run Static Analysis and Tests

Type make to run all.

Type make static for only static tests.

Type make test for only pytest. Alternatively, run pytest in the root of the project to run all tests. You can run pytest in any of module folders (e.g. in mirrulations-client) to run tests for just that module. Note that there are pytest.ini files in each module as well as a global pytest.ini.

  • Static analysis uses flake8, pycodestyle, and pylint
  • pytest uses a coverage metric of 95%.
  • NOTE: Sometimes if pytest is installed globally, the virtual environment will use that instead. Simply exit and reenter the virtual environment to resolve this. Alternatively, uninstall pytest from the global packages (pip3 uninstall pytest in new termainal).

Architecture

The image below shows the overview of the architecture for our system. Right now, the portions in blue are implemented at a basic level. Those in red are the remaining parts we need to connect. Regardless, the image shows the relationship between the working plumbing but also includes the plan over the next few weeks. Architecture

Contributors

capstone2022's People

Contributors

kylienorwood avatar colbyhman avatar jonahb13 avatar mrtsfree avatar francisseverino avatar bjcoleman avatar frekotj avatar jarod-frekot avatar rileyalankirk avatar emilyheiser avatar juan-pgb avatar jaguilar10 avatar meciah avatar wbrandes avatar lapatchak97 avatar abdulllah96 avatar thefavalava avatar corylittle02 avatar esvicente avatar jav-aguilar avatar juan-gbp avatar

Stargazers

Jack Fineanganofo 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.