flare-portal

Flare Portal

https://github.com/flare-kcl/flare-portal

Science Score: 44.0%

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

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

Repository

Flare Portal

Basic Info
  • Host: GitHub
  • Owner: flare-kcl
  • License: mit
  • Language: Python
  • Default Branch: main
  • Size: 3.16 MB
Statistics
  • Stars: 2
  • Watchers: 1
  • Forks: 3
  • Open Issues: 23
  • Releases: 1
Created over 5 years ago · Last pushed almost 2 years ago
Metadata Files
Readme License Citation

README.md

Important

Please note that the FLARe Research instance of the app is not currently being maintained by King's College London as of 2024/04/01.

Flare Portal Wagtail site

Technical documentation

This project contains technical documentation written in Markdown in the /docs folder. This covers:

  • continuous integration
  • deployment
  • git branching
  • project conventions
  • Flare portal API endpoints

You can view it using mkdocs by running:

bash mkdocs serve

The documentation will be available at: http://localhost:8001/

Setting up a local build

This repository includes docker-compose configuration for running the project in local Docker containers, and a fabfile for provisioning and managing this.

Dependencies

The following are required to run the local environment. The minimum versions specified are confirmed to be working: if you have older versions already installed they may work, but are not guaranteed to do so.

Note that on Mac OS, if you have an older version of fabric installed, you may need to uninstall the old one and then install the new version with pip3:

bash pip uninstall fabric pip3 install fabric

You can manage different python versions by setting up pyenv: https://realpython.com/intro-to-pyenv/

Running the local build for the first time

Starting a local build can be done by running:

bash git clone [URL TO GIT REMOTE] cd flare_portal fab build fab start fab sh

Then within the SSH session:

```bash ./manage.py migrate ./manage.py createcachetable ./manage.py createsuperuser ./manage.py runserver 0:8000

```

The site should be available on the host machine at: http://127.0.0.1:8000/

Frontend tooling

There are 2 ways to run the frontend tooling:

With the frontend docker container (default)

After starting the containers as above and running ./manage.py runserver 0:8000, in a new terminal session run fab npm start. This will start the frontend container and the site will be available on port :3000 using browsersync. E.G localhost:3000.

Locally

To run the FE tooling locally. Create a .env file in the project root (see .env.example) and add FRONTEND=local. Running fab start will no run the frontend container and you can start npm locally instead

There are a number of other commands to help with development using the fabric script. To see them all, run:

bash fab -l

Front-end assets

Frontend npm packages can be installed locally with npm, then added to the frontend container with fabric like so:

bash npm install promise fab npm install

Installing python packages

Python packages can be installed using poetry in the web container:

fab sh-root poerty install wagtail-guide

Owner

  • Name: flare-kcl
  • Login: flare-kcl
  • Kind: organization

Citation (citation.cff)

cff-version: 1.1.0
message: If you use this software, please cite it as below.
authors:
  - family-names: McGregor
    given-names: Thomas
    orcid: https://orcid.org/0000-0003-0024-7049

  - family-names: Horrigan
    given-names: Nathan
    orcid: https://orcid.org/0000-0002-0008-0392

  - family-names: McGregor
    given-names: Thomas
    orcid: https://orcid.org/0000-0003-0024-7049

  - family-names: Purves
    given-names: Kirstin L.
    orcid: https://orcid.org/0000-0002-8110-5554

  - family-names: Cabuloy
    given-names: Mitchel
    orcid: https://orcid.org/0000-0003-4360-7833

  - family-names: Heasman
    given-names: Ben
    orcid: https://orcid.org/0000-0002-4199-5118

  - family-names: Vetch
    given-names: Paul
    orcid: https://orcid.org/0000-0002-1956-9120

  - family-names: Young
    given-names: Katherine S.
    orcid: https://orcid.org/0000-0002-1378-6415

  - family-names: Breen
    given-names: Gerome
    orcid: https://orcid.org/0000-0003-2053-1792

  - family-names: Eley
    given-names: Thalia C.
    orcid: https://orcid.org/0000-0001-6458-0700


title: "Fear Learning and Anxiety Response (FLARe)"
version: 1.2.0
doi: 10.5281/zenodo.4596341
date-released: 2021-03-12

GitHub Events

Total
  • Fork event: 1
Last Year
  • Fork event: 1

Dependencies

package-lock.json npm
  • 1173 dependencies
package.json npm
  • @babel/core ^7.12.16 development
  • @babel/preset-env ^7.14.1 development
  • @babel/preset-react ^7.12.13 development
  • autoprefixer ^9.8.6 development
  • babel-eslint ^10.1.0 development
  • babel-jest ^26.6.3 development
  • babel-loader ^8.2.2 development
  • browser-sync ^2.26.14 development
  • copy-webpack-plugin ^7.0.0 development
  • css-loader ^5.0.2 development
  • cssnano ^4.1.10 development
  • eslint ^7.25.0 development
  • eslint-config-airbnb ^18.2.1 development
  • eslint-config-prettier ^6.15.0 development
  • eslint-config-torchbox ^0.3.3 development
  • eslint-plugin-import ^2.22.1 development
  • eslint-plugin-jsx-a11y ^6.4.1 development
  • eslint-plugin-react ^7.22.0 development
  • eslint-plugin-react-hooks ^4.2.0 development
  • file-loader ^6.2.0 development
  • jest ^26.6.3 development
  • mini-css-extract-plugin ^1.6.0 development
  • npm-run-all ^4.1.5 development
  • onchange ^7.1.0 development
  • postcss-custom-properties ^10.0.0 development
  • postcss-loader ^5.0.0 development
  • prettier ^2.2.1 development
  • sass ^1.32.12 development
  • sass-loader ^11.0.1 development
  • stylelint ^13.13.1 development
  • stylelint-config-torchbox ^1.0.0 development
  • url-loader ^4.1.1 development
  • webpack ^5.36.2 development
  • webpack-cli ^4.5.0 development
  • @glidejs/glide ^3.4.1
  • @shopify/draggable ^1.0.0-beta.8
  • alpinejs ^2.8.0
  • core-js ^3.11.2
  • js-cookie ^2.2.1
  • lodash ^4.17.21
  • prop-types ^15.7.2
  • react ^17.0.1
  • react-dom ^17.0.1
  • regenerator-runtime ^0.13.7
  • simplemde ^1.11.2
poetry.lock pypi
  • 114 dependencies
pyproject.toml pypi
  • SQLAlchemy 1.2.5 develop
  • SQLAlchemy-Utils 0.33.1 develop
  • Werkzeug ~1.0 develop
  • black 22.3.0 develop
  • detect-secrets ~1.1 develop
  • django-extensions ~3.1 develop
  • django-stubs ^1.7.0 develop
  • fabric ~2.6 develop
  • factory-boy ^3.2.0 develop
  • flake8 3.8.4 develop
  • freezegun ^1.1.0 develop
  • ipdb ^0.13.7 develop
  • isort 5.7.0 develop
  • mkdocs ~1.0 develop
  • mkdocs-material ~4.6 develop
  • mypy ^0.812 develop
  • pre-commit ~2.12 develop
  • pymdown-extensions ~6.2 develop
  • seed-isort-config 1.9.4 develop
  • stellar ~0.4 develop
  • Faker ^8.1.2
  • Markdown 3.1.1
  • Pillow ^8.1.1
  • dj-database-url ~0.5
  • django ~3.2
  • django-basic-auth-ip-whitelist ~0.3.3
  • django-csp ~3.7
  • django-extra-views ^0.13.0
  • django-model-utils ^4.1.1
  • django-redis ~4.12
  • django-referrer-policy ~1.0
  • django-solo ^1.1.5
  • django-storages ~1.11
  • django-widget-tweaks ^1.4.8
  • djangorestframework ^3.12.2
  • gunicorn ~20.0
  • jsmin ^3.0.0
  • psycopg2 ~2.8
  • python ^3.8
  • scout-apm ~2.18
  • sentry-sdk ^1.0.0
  • whitenoise ~5.2
.github/workflows/ci.yml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • actions/download-artifact v2 composite
  • actions/setup-python v2 composite
  • actions/upload-artifact v2 composite
  • postgres 12 docker
Dockerfile docker
  • node 12 build
  • python 3.8-buster build
docker-compose.yml docker
  • postgres 12.3
  • redis 3.0