diff --git a/README.md b/README.md index 9353cc96..8f1b8a4b 100644 --- a/README.md +++ b/README.md @@ -36,15 +36,16 @@ Documentation can be found on https://shuffler.io/docs/about or in your own inst Open an issue on Github, or [join the gitter chat](https://gitter.im/Shuffle-SOAR/community). For other / private requests: [frikky@shuffler.io](mailto:frikky@shuffler.io) ### Setup - Local development -Frontend - requires [npm](https://nodejs.org/en/download/)/[yarn](https://yarnpkg.com/lang/en/docs/install/#debian-stable)/your preferred manager. Runs independently from backend - edit frontend/src/App.yaml (line 46~) from window.location.origin to http://YOUR IP:5001 +Frontend - requires [npm](https://nodejs.org/en/download/)/[yarn](https://yarnpkg.com/lang/en/docs/install/#debian-stable)/your preferred manager. Runs independently from backend - edit frontend/src/App.yaml (line 44~) from window.location.origin to http://YOUR IP:5001 ```bash cd frontend npm i npm start ``` -Backend - API calls - requires [>=go1.13](https://golang.org/dl/) and [gcloud](https://cloud.google.com/sdk/install) +Backend - API calls - requires [>=go1.13](https://golang.org/dl/) ```bash +export DATASTORE_EMULATOR_HOST=0.0.0.0:8000 cd backend/go-app go build go run *.go diff --git a/backend/go-app/main.go b/backend/go-app/main.go index 37f5135e..ef466fcc 100644 --- a/backend/go-app/main.go +++ b/backend/go-app/main.go @@ -5824,6 +5824,9 @@ func runInit(ctx context.Context) { log.Printf("Downloading OpenAPI data for search - EXTRA APPS") apis := "https://github.com/frikky/OpenAPI-security-definitions" + + // THis gets memory problems hahah + //apis := "https://github.com/APIs-guru/openapi-directory" fs := memfs.New() storer := memory.NewStorage() cloneOptions := &git.CloneOptions{ @@ -5833,6 +5836,7 @@ func runInit(ctx context.Context) { if err != nil { log.Printf("Failed loading repo %s into memory: %s", err) } else { + log.Printf("Finished getting data.. Now looking for updates") dir, err := fs.ReadDir("") if err != nil { log.Printf("Failed reading folder: %s", err) diff --git a/frontend/src/App.js b/frontend/src/App.js index 63c4f860..0b65efd2 100644 --- a/frontend/src/App.js +++ b/frontend/src/App.js @@ -38,10 +38,10 @@ import AlertTemplate from "react-alert-template-basic"; import { positions, Provider } from "react-alert"; // Testing - localhost -const globalUrl = "http://192.168.3.6:5001" +//const globalUrl = "http://192.168.3.6:5001" // Production - backend proxy forwarding in nginx -//const globalUrl = window.location.origin +const globalUrl = window.location.origin const surfaceColor = "#27292D" const inputColor = "#383B40" diff --git a/frontend/src/Apps.js b/frontend/src/Apps.js index bf5adb80..dcc55e17 100644 --- a/frontend/src/Apps.js +++ b/frontend/src/Apps.js @@ -511,7 +511,7 @@ const Apps = (props) => { :

- Try a broader search term. E.g. "http" or "TheHive" + Try a broader search term, e.g. "http", "alert", "ticket" etc.

@@ -651,7 +651,7 @@ const Apps = (props) => { return response.json() }) .then((responseJson) => { - console.log(responseJson) + //console.log(responseJson) if (responseJson.success) { if (responseJson.reason !== undefined && responseJson.reason.length > 0) { setFilteredApps(responseJson.reason)