Skip to content

Commit

Permalink
Remove web app
Browse files Browse the repository at this point in the history
  • Loading branch information
superstar54 committed Dec 3, 2024
1 parent 3ee3e9a commit ec1f076
Show file tree
Hide file tree
Showing 65 changed files with 0 additions and 38,871 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,6 @@ jobs:
- name: Create AiiDA profile
run: verdi setup -n --config .github/config/profile.yaml

- name: Install Dependencies, Start React Application
working-directory: aiida_workgraph/web/frontend
run: |
npm install
npm run build
- name: Run pytest
env:
AIIDA_WARN_v3: 1
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install build
- name: Build web frontend package
working-directory: aiida_workgraph/web/frontend/
run: |
npm install
npm run build
- name: Build package
run:
python -m build
Expand Down
50 changes: 0 additions & 50 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,56 +35,6 @@ To change the default python path you can set the environment variable
PYTEST_PYTHONJOB_PYTHON_EXEC_PATH=/home/user/pyvenv/workgraph-dev/bin/python pytest tests/test_python.py
```

#### Running frontend tests in headed mode

To debug the frontend tests you often want to see what happens in the tests.
By default they are run in headless mode, so no browser is shown.
To run the frontend tests in headed mode for you have to set an environment variable like this
```console
PYTEST_PLAYWRIGHT_HEADLESS=no pytest -m frontend
```

For the frontend tests we start a web server at port `8000`, please free this address for before running the frontend tests.

### Development on the GUI

For the development on the GUI we use the [REACT](https://react.dev) library
which can automatically refresh on changes of the JS files. To start the backend
server please run

```console
python aiida_workgraph/web/backend/main.py
```

then start the frontend server with
```console
npm --prefix aiida_workgraph/web/frontend start
```

The frontend server will refresh

#### Tools for writing frontend tests

To determine the right commands for invoking DOM elements playwright offers a
tool that outputs commands while navigating through the GUI. It requires a
webserver to be running so it can be started with
```console
workgraph web start
playwright codegen
```

#### Troubleshooting

##### Tests are not updating after changes in code

You might want to clean your cache

```console
npm --prefix aiida_workgraph/web/frontend cache clean
```

and also clear your browsers cache or try to start new private window.


### Building the docs

Expand Down
13 changes: 0 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,6 @@ cd aiida-workgraph
pip install -e .
```

To install the web app you need to in addition build the JavaScript packages:

```console
pip install .
# build web frontend
cd ../../aiida_workgraph/web/frontend/
npm install
npm run build
```

## Documentation
Explore the comprehensive [documentation](https://aiida-workgraph.readthedocs.io/en/latest/) to discover all the features and capabilities of AiiDA Workgraph.
Expand Down Expand Up @@ -100,9 +91,5 @@ pip install -e .[tests,pre-commit]
pre-commit install
```

### Web app
See the [README.md](https://github.com/aiidateam/aiida-workgraph/blob/main/aiida_workgraph/web/README.md)


## License
[MIT](http://opensource.org/licenses/MIT)
73 changes: 0 additions & 73 deletions aiida_workgraph/cli/cmd_web.py

This file was deleted.

33 changes: 0 additions & 33 deletions aiida_workgraph/web/README.md

This file was deleted.

Empty file removed aiida_workgraph/web/__init__.py
Empty file.
Empty file.
Empty file.
90 changes: 0 additions & 90 deletions aiida_workgraph/web/backend/app/api.py

This file was deleted.

Loading

0 comments on commit ec1f076

Please sign in to comment.