Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions application/utils/gap_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,13 @@ def schedule(standards: List[str], database):
logger.info(f"Gap analysis result for {standards_hash} does not exist")

conn = redis.connect()
if conn is None:
logger.error(
"Redis is not available. Please run 'make start-containers' first."
)
return {
"error": "Redis is not available. Please run 'make start-containers' first."
}
gap_analysis_results = conn.get(standards_hash)
if (
gap_analysis_results
Expand Down
4 changes: 4 additions & 0 deletions docs/developmentSetup.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ You can run `make migrate-upgrade` first and then `make upstream-sync`

## Running locally

First, start the required services (Redis and Neo4j) with:

`make start-containers`

You can run the backend with `make dev-flask`. At the time of writing the backend URL is `http://localhost:5000` by default.

You can run the frontend with `yarn start`. This should open a browser tab at the application's front page and also automatically reload the page whenever changes are detected. At the time of writing the frontend URL is `http://localhost:9001` by default.
Expand Down