Skip to content

hseling/hseling-repo-antidict

Repository files navigation

antidict

This is Antidict.

How to run Web part without Docker

Install NPM dependencies:

cd hseling-web-antidict; npm install .; cd ..

Create venv and install Python dependencies for Web part:

cd hseling-web-antidict
python3 -m venv .env
source .env/bin/activate
pip install -r requirements.txt
cd ..

To run Web Application:

export HSELING_RPC_ENDPOINT=https://localhost:5000/rpc/
export PYTHONPATH=hseling-web-antidict
python3 hseling-web-antidict/hseling_web_antidict/main.py
deactivate

How to run API/RPC part without Docker

Create venv and install Python dependencies for Web part:

cd hseling-api-antidict
python3 -m venv .env
source .env/bin/activate
pip install -r requirements.txt
cd ..

To run RPC server:

PYTHONPATH=hseling-lib-antidict:hseling-api-antidict python hseling-api-antidict/hseling_api_antidict/main.py

Docker containers

Build and run composed docker environment:

docker-compose build
docker-compose up

To stop your environment press C-c or:

docker-compose stop

Checking your application

Check if your API container started successfully:

curl https://localhost:5000/healthz

Now you can use curl to check RPC endpoints at localhost:5000:

curl -XPOST -H "Content-type: application/json" -d '{"id": 1, "method": "list_files", "params": []}' https://localhost:5000/rpc/

You can navigate to main web application using this link:

open https://localhost:8000/web/

License

MIT License. See LICENSE file.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •