mirror of https://github.com/logos-co/open-law.git
Jakub Sokołowski
f96573369f
Signed-off-by: Jakub Sokołowski <jakub@status.im> |
||
---|---|---|
.github/workflows | ||
.vscode | ||
app | ||
migrations | ||
src | ||
tests | ||
.dockerignore | ||
.flaskenv | ||
.gitignore | ||
.prettierrc.js | ||
Dockerfile | ||
LICENSE | ||
README.md | ||
build_static.sh | ||
config.py | ||
docker-compose.yml | ||
package.json | ||
poetry.lock | ||
poetry.toml | ||
postcss.config.js | ||
project.env | ||
pyproject.toml | ||
start_server.sh | ||
tailwind.config.js | ||
tox.ini | ||
tsconfig.json | ||
webpack.config.js | ||
webpack.dev.js | ||
webpack.prod.js | ||
wsgi.py | ||
yarn.lock |
README.md
Open-Law
Installation
- Create virtual environment and install dependencies
poetry install
- Install node packages
yarn
- Run webpack JS bundler
yarn js-watch
- Run webpack CSS bundler
yarn css-watch
- Rename
project.env
to.env
- Up docker container with database
docker-compose up -d db
- Apply migrations
flask db upgrade
- Run project in the vs-code debugger
F5
Build
- To minify static files run
yarn js
andyarn css
orsh build_static.sh
- Build docker containers
docker-compose build
- 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