https://github.com/climatecompatiblegrowth/research_index

Deploys a Flask web app with a memgraph backend for exploring CCG research outputs

https://github.com/climatecompatiblegrowth/research_index

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (5.1%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Deploys a Flask web app with a memgraph backend for exploring CCG research outputs

Basic Info
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 20
  • Releases: 0
Created over 2 years ago · Last pushed about 1 year ago
Metadata Files
Readme License Authors

README.md

CCG Research Index

Development

Create a .env file in the project root with the following environment variables: sh MG_HOST= # Memgraph host address MG_PORT= # Default Memgraph port MG_PORT_ALT= # Alternative port MG_USER= # Memgraph user MG_PASS= # Memgraph user password

To enter development mode of the website, with the memgraph database running in the background, run

fastapi dev app/main.py

Deployment

1. Create a memgraph instance on Microsoft Azure.

Once the VM is up and running, SSH into the VM, download and install memgraph

curl -O https://download.memgraph.com/memgraph/v2.14.1/ubuntu-20.04/memgraph_2.14.1-1_amd64.deb
sudo dpkg -i /memgraph_2.14.1-1_amd64.deb

Set up the Memgraph user to match the credentials specified in the .env file.

2. Build Docker container

docker build -t research_index_web_app:development .

Run the docker container in development mode to test

docker run -dp 8000:8000 research_index_web_app:development

docker run -dp 5001:80 -w /app -v "$(pwd):/app" research-index-gunicorn-311 sh -c "python app/app.py"

3. Deploy front-end to Azure and provision database

Push container to docker hub

docker container commit c385 ccg-research-index:v0.1
docker image tag ccg-research-index:v0.1 willu47docker/ccg-research-index:ccg-research-index
docker image push willu47docker/ccg-research-index:ccg-research-index

Owner

  • Name: Climate Compatible Growth
  • Login: ClimateCompatibleGrowth
  • Kind: organization
  • Location: United Kingdom

GitHub Events

Total
  • Issues event: 47
  • Delete event: 25
  • Issue comment event: 15
  • Push event: 96
  • Pull request review comment event: 2
  • Pull request review event: 10
  • Pull request event: 49
  • Create event: 26
Last Year
  • Issues event: 47
  • Delete event: 25
  • Issue comment event: 15
  • Push event: 96
  • Pull request review comment event: 2
  • Pull request review event: 10
  • Pull request event: 49
  • Create event: 26

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 16
  • Total pull requests: 11
  • Average time to close issues: 4 months
  • Average time to close pull requests: 4 days
  • Total issue authors: 2
  • Total pull request authors: 2
  • Average comments per issue: 0.31
  • Average comments per pull request: 0.45
  • Merged pull requests: 10
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 13
  • Pull requests: 11
  • Average time to close issues: 29 days
  • Average time to close pull requests: 4 days
  • Issue authors: 2
  • Pull request authors: 2
  • Average comments per issue: 0.38
  • Average comments per pull request: 0.45
  • Merged pull requests: 10
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • willu47 (34)
  • FrancisTembo (6)
Pull Request Authors
  • willu47 (27)
  • FrancisTembo (4)
Top Labels
Issue Labels
enhancement (4) bug (4) api (3) high priority (2)
Pull Request Labels
bug (1) enhancement (1)

Dependencies

Dockerfile docker
  • python 3.11 build
requirements.txt pypi
  • flask *
  • gqlalchemy *
  • gunicorn *
.github/workflows/main_research-index.yml actions
  • actions/checkout v2 composite
  • azure/webapps-deploy v2 composite
  • docker/build-push-action v3 composite
  • docker/login-action v2 composite
  • docker/setup-buildx-action v2 composite