Code Monkey home page Code Monkey logo

pie's Introduction

MagPIE

MagPIE Logo MagPie Webpage

Overview

A project to provide a unified workflow for the Post-Ingest Exploitation (PIE) cell empowered through metrics, web design, and customer feedback.

Setup

Dependencies

  • mysql stable 5.7.20 (or later)
  • java 1.8
  • maven 3.5.4 (or later)
  • node 10.16.0 (or later)
  • yarn 1.17.3 (or later)

Environment Variables

These variables are required:

  • PIE_DB_URL (string)
  • PIE_DB_USERNAME (string)
  • GETS_REQUEST_TIME_FRAME_IN_DAYS (int)
  • GETS_URI_CLOSED (string)
  • GETS_URI_OPEN_PENDING (string)

You can setup all required environment variables by running

source ./scripts/setup_env.sh

Setup the database

  • ./scripts/setup_db.sh

Build

Client

  • Be sure dependencies are up to date with cd client && yarn
  • cd client && yarn build

Backend

  • mvn install

Develop

Client Development Server

  • cd client && yarn start

Backend Development Server

  • mvn spring-boot:run
    • alternatively use IntelliJ Application run configuration

Test

Frontend Tests

  • cd client && yarn test
    • alternatively use IntelliJ All Frontend run configuration

Backend Tests

  • mvn test
    • alternatively use IntelliJ All Backend run configuration

All Unit Tests (Frontend and Backend)

  • ./scripts/tests.sh unit

Acceptance Tests

  • ./scripts/tests.sh acc or ./scripts/tests.sh acceptance

Acceptance Tests without rebuilding the JAR

  • ./scripts/tests.sh anj

Specific Acceptance Tests

  • ./scripts/tests.sh acc # or ./scripts/tests.sh anj # or ./scripts/tests.sh acceptance #
    • replace # with the acceptance test number you want to run

All tests

  • ./scripts/tests.sh

Deploy

Traditionally, it will push at the end of its pipeline cycle (in Jenkins via NGA). You could also log into PCF via CLI:

  • cf login
  • cf push

Resources

pie's People

Contributors

chair4ce avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.