Skip to main content

A Tethys App for no code/low code web application development app

Project description

TethysDash

This app was created using an experimental Tethys + React app scaffold. It uses React for the frontend of the app and Tethys as the backend. For more detailed information, check the official TethysDash documentation

Quick Installation

  1. If creating a new python environment, create and activate it
    python3 -m venv test_env
    source test_env/bin/activate
  1. Install TethysDash
    pip install tethysdash
  1. Setup Tethys and TethysDash Databases and Services
    tethysdash setup
  1. Start Tethys Portal
    tethysdash start

Development Installation

You need to install both the Tethys dependencies and the node dependencies:

  1. Open Terminal and activate tethys env
conda activate tethys
  1. Clone the Repo
git clone https://github.com/tethysplatform/tethysapp-tethys_dash
  1. Install the app in Tethys Platform
cd tethysapp-tethys_dash/
tethys install -d
  1. Create Persistence Store (if not done already) (update connection string as needed)
## Command Line Interface (CLI)

After installing tethysdash, you can use the CLI tool:

tethysdash


This will run the CLI entry point defined in the package. You can add arguments as needed:

tethysdash


For example:

tethysdash --help


### Setup Command

To run Tethys portal and database setup commands, use:

tethysdash setup


This will execute:

- `tethys gen portal_config`
- `tethys db configure`

You must have the `tethys` CLI available in your environment.
tethys services create persistent -n primary_db -c postgres:mysecretpassword@localhost:5432
  1. Connect Persistence Store to TethysDash
tethys link persistent:primary_db tethysdash:ps_database:primary_db
  1. Setup Environment Variables (not necessary unless connection values are different)
export POSTGRES_PASSWORD=mysecretpassword
export TETHYS_DB_HOST=localhost
export TETHYSDASH_DB_NAME=tethysdash_primary_db
export TETHYS_DB_PORT=5432
  1. Setup TethysDash DB Tables
tethys syncstores tethysdash
  1. Install Plugin Examples (not necessary but recommended)
cd ..
git clone https://github.com/FIRO-Tethys/tethysdash_examples
cd tethysdash_examples
pip install -e .

Frontend Development

The webpack dev server is configured to proxy the Tethys development server (see webpack.config.js). The app endpoint will be handled by the webpack development server and all other endpoints will be handled by the Tethys (Django) development server. As such, you will need to start both in separate terminals.

  1. Install the node and dependencies
cd tethysapp-tethysdash
npm install --dev
  1. Start Tethys development server
tethys manage start
  1. Start webpack development server (in separate terminal)
npm start

Frontend Build

Webpack is configured to bundle and build the React app into the tethysapp/<app_package>/public/frontend directory. Before building a Python distribution for release, you should build using this command:

npm run build

Frontend Test

Use the following commands to lint and test the React portion of the app.

npm run lint
npm run test

The linting capability is powered by eslint and a number of plugins for React. The testing capabilities include jest, jsdom, testing-framework, user-event, and a few other JavaScript testing utilties to make it easy to test the frontend of the React-Tethys app.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tethysdash-0.18.0.tar.gz (44.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tethysdash-0.18.0-py3-none-any.whl (43.7 MB view details)

Uploaded Python 3

File details

Details for the file tethysdash-0.18.0.tar.gz.

File metadata

  • Download URL: tethysdash-0.18.0.tar.gz
  • Upload date:
  • Size: 44.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for tethysdash-0.18.0.tar.gz
Algorithm Hash digest
SHA256 e46dd6137b22af72e3be64f2f441a7c0ad7b1af7ee1e6f5fa5b0ffaf208985b1
MD5 118b4e1d45d85aa2a5062082bbdd27bf
BLAKE2b-256 b85f36ddfc1821b673e9213db98a4e3ffd14bc3f6a67fd2b82a766375678c86b

See more details on using hashes here.

File details

Details for the file tethysdash-0.18.0-py3-none-any.whl.

File metadata

  • Download URL: tethysdash-0.18.0-py3-none-any.whl
  • Upload date:
  • Size: 43.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for tethysdash-0.18.0-py3-none-any.whl
Algorithm Hash digest
SHA256 833614172a43bb47ebeb0987d84be889a52e73a5120c86099e2f2a9d22248813
MD5 a8dc363ae8217661b6be622952830a4e
BLAKE2b-256 6c1f975834733c87fdb081792b700e346ae66d777035c4e5aa5385ee7eb20d7b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page