GithubHelp home page GithubHelp logo

pombredanne / casval Goto Github PK

View Code? Open in Web Editor NEW

This project forked from recruit-tech/casval

0.0 1.0 0.0 382 KB

Casual Vulnerability Analyzer

JavaScript 1.03% HTML 0.22% Vue 27.80% Python 70.39% HCL 0.55%

casval's Introduction

A casual vulnerability analyzer, that makes platform security audit more casual.

screenshot

How to Deploy

Get all the stuff at first.

git clone https://github.com/recruit-tech/casval

Local development environment

In casval/rem, run the following commands.

docker run -e MYSQL_DATABASE=casval -e MYSQL_ROOT_PASSWORD=Passw0rd! -d -p 3306:3306 mysql:5.7 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
docker run -e PUBLIC_HOSTNAME=localhost -d -p 443:443 -p 9390:9390 mikesplain/openvas:9
pipenv install -d
pipenv run server

Also, run the following commands for invoking cron-like periodic task.

pipenv run cron

In casval/admin-ui, run the following commands.

npm ci
npm run serve

In casval/ui, run the following commands.

npm ci
npm run serve

Done, visit http://localhost:8100/ on your browser. The default administrator password is admin-password.

Production environment (on GCP)

In casval/rem, you need to set your GCP project name to example.tf.

variable "project" {
  default = "{YOUR_PROJECT_NAME}"
}

Run the following commands for building cloud infrastructure on your GCP project.

terraform init
terraform apply -auto-approve

Also, run the following commands for deploying the API server to Google App Engine.

pipenv install
pipenv run config
pipenv run freeze
pipenv run deploy

In casval/admin-ui, run the following commands for deploying administrator front-end user interface.

npm ci
npm run build
gcloud -q app deploy

In casval/ui, run the following commands for deploying end-user's front-end user interface.

npm ci
npm run build
gcloud -q app deploy

Back to casval, run the following commands for setup URL routers and cron scheduled tasks.

gcloud -q app deploy dispatch.yaml
gcloud -q app deploy cron.yaml

Done, visit the GAE endpoint on your browser. The default administrator password is admin-password.

For Developers

When you reflect upstream changes to your environment, you need to set following remote repositories at casval/.

git remote add rem [email protected]:recruit-tech/casval-rem.git
git remote add ui [email protected]:recruit-tech/casval-ui.git
git remote add admin-ui [email protected]:recruit-tech/casval-admin-ui.git

Update subtree directories with upstream changes.

git subtree pull --prefix rem rem master --squash
git subtree pull --prefix ui ui master --squash
git subtree pull --prefix admin-ui admin-ui master --squash

casval's People

Contributors

masahiro331 avatar nishimunea avatar

Watchers

 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.