webtor-io / web-ui-v2

The second version of webtor.io frontend
MIT License
28 stars 2 forks source link

web-ui-v2

The future version of webtor.io

Some features to mention:

  1. Lightweight - less JavaScript code, no frontend frameworks, fewer bytes sent to the client.
  2. Based on webtor REST-API.

Roadmap

Setting up connection to Webtor RestAPI

You have to set up connection to Webtor RestAPI before using WebUI.

If you have already installed backend part, then you have to proxy rest-api from your k8s instance to your local machine with kubefwd:

sudo kubefwd svc -f metadata.name=rest-api -n webtor

or with kubectl:

kubectl port-forward svc/rest-api 9090:80 -n webtor

# you have to setup additional environment variables before starting application
export REST_API_SERVICE_PORT=9090
export REST_API_SERVICE_HOST=localhost

If you have RapidAPI subscription you can just do the following:

export RAPIDAPI_KEY={YOUR_RAPIDAPI_KEY}
export RAPIDAPI_HOST={YOUR_RAPIDAPI_HOST}

Usage

./web-ui-v2 help
NAME:
   web-ui-v2 - runs webtor web ui v2

USAGE:
   web-ui-v2 [global options] command [command options] [arguments...]

VERSION:
   0.0.1

COMMANDS:
   serve, s  Serves web server
   help, h   Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help
   --version, -v  print the version

Development

npm install
npm start

Building

make build