Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/allofphysicsgraph/ui_v7_website_flask_json

version 7 of the Physics Derivation Graph UI: a flask-based website with JSON backend
https://github.com/allofphysicsgraph/ui_v7_website_flask_json

flask graph json knowledge-graph physics python python3

Last synced: 20 days ago
JSON representation

version 7 of the Physics Derivation Graph UI: a flask-based website with JSON backend

Awesome Lists containing this project

README

        

This repo is the source code for the website , aka .

# Files not in this repo
* `certs/dhparam.pem`
* `certs/fullchain.pem`
* `certs/privkey.pem`
* `.env`

The `certs/*.pem` are generated by Let's Encrypt

The `.env` file contains three lines,
```bash
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
SECRET_KEY=
```

# How to use (for the impatient)

git clone https://github.com/allofphysicsgraph/ui_v7_website_flask_json.git
cd ui_v7_website_flask_json/flask/
docker build -t flask_ub .
docker run -it --rm -v`pwd`/data.json:/home/appuser/app/data.json \
-v`pwd`/logs/:/home/appuser/app/logs/ \
--publish 5000:5000 flask_ub

See [developer documentation](https://derivationmap.net/developer_documentation?referrer=github_README) after reading the [user documentation](https://derivationmap.net/user_documentation)

## quickstart

```bash
docker-compose up --build --remove-orphans
```
As a two step process:

```bash
docker-compose build --progress tty
docker-compose up
```
On DigitalOcean server:

```bash
docker-compose up --build --remove-orphans --detach
```
or
```bash
docker-compose up --build --force-recreate --remove-orphans --detach
```

Because software is in Docker containers (for reproducibility), the versions of the Docker software you're using matter. The
software in this repo has been tested with
* docker-compose 1.29.2
* Compose file format 3.6
* Docker Engine release 20.10.11
See for compatibility of versions.

docker-compose instructions are from from

and

combining flask, gunicorn, nginx is from

nginx timeout

# Licensing

[Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/)

# Software Requirements

* Docker
* a web browser

# Contributing

Before submitting code via a pull request, please open an issue (feature or bug) and describe your question or intent.

Python code is formatted using Black.