Python, Flask, TailwindCSS
Go to file
Jakub Sokołowski f96573369f
add db healtcheck to docker-compose.yml
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-07-04 21:25:22 +02:00
.github/workflows try 2023-06-01 11:45:20 +03:00
.vscode issue update copy for empty collections and subcollections #171 2023-06-20 09:34:20 +03:00
app add /health path which checks DB availability 2023-07-04 21:25:21 +02:00
migrations version updated by 2023-06-20 15:13:08 +03:00
src fix connect wallet btn 2023-06-21 17:40:19 +03:00
tests fix tests 2023-06-16 12:49:59 +03:00
.dockerignore fix: docker build 2023-05-09 20:09:18 +03:00
.flaskenv initial commit 2023-04-20 16:10:16 +03:00
.gitignore Merge branch 'develop' into kipod/fix/js_css_build 2023-05-09 18:06:01 +03:00
.prettierrc.js initial commit 2023-04-20 16:10:16 +03:00
Dockerfile Dockerfile: use Python venv, improve image size 2023-07-04 20:56:23 +02:00
LICENSE Initial commit 2023-04-20 15:33:42 +03:00
README.md readme 2023-07-04 20:56:22 +02:00
build_static.sh add tooltip to breadcrumbs 2023-05-10 16:45:18 +03:00
config.py page styling for all pages #173 2023-06-21 15:22:54 +03:00
docker-compose.yml add db healtcheck to docker-compose.yml 2023-07-04 21:25:22 +02:00
package.json Revert to 5576e59678 2023-06-19 15:34:42 +03:00
poetry.lock add /health path which checks DB availability 2023-07-04 21:25:21 +02:00
poetry.toml initial commit 2023-04-20 16:10:16 +03:00
postcss.config.js initial commit 2023-04-20 16:10:16 +03:00
project.env add /health path which checks DB availability 2023-07-04 21:25:21 +02:00
pyproject.toml add /health path which checks DB availability 2023-07-04 21:25:21 +02:00
start_server.sh fix ports in project.env nd docker-compose.yml 2023-07-04 20:56:24 +02:00
tailwind.config.js book list component styling #175 2023-06-20 11:10:27 +03:00
tox.ini finish flask admin customization 2023-06-09 16:36:09 +03:00
tsconfig.json Revert to 5576e59678 2023-06-19 15:34:42 +03:00
webpack.config.js del: source map from bundle 2023-05-09 17:55:29 +03:00
webpack.dev.js use: webpack-merge 2023-05-09 17:16:13 +03:00
webpack.prod.js use: webpack-merge 2023-05-09 17:16:13 +03:00
wsgi.py initial commit 2023-04-20 16:10:16 +03:00
yarn.lock Revert to 5576e59678 2023-06-19 15:34:42 +03:00

README.md

Open-Law

Installation

  1. Create virtual environment and install dependencies poetry install
  2. Install node packages yarn
  3. Run webpack JS bundler yarn js-watch
  4. Run webpack CSS bundler yarn css-watch
  5. Rename project.env to .env
  6. Up docker container with database docker-compose up -d db
  7. Apply migrations flask db upgrade
  8. Run project in the vs-code debugger F5

Build

  1. To minify static files run yarn js and yarn css or sh build_static.sh
  2. Build docker containers docker-compose build
  3. Run docker containers docker-compose up -d

To set up auto deployment CI/CD you need to set following variables in the Actions secrets and variables page of repository settings

DOCKERHUB_TOKEN - hub.docker.com api token DOCKERHUB_USERNAME - hub.docker.com username SSH_HOST_IP_PROD - VPS IP SSH_KEY - VPS ssh key SSH_USER - VPS user