Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
matuskosut committed Oct 20, 2023
1 parent 74552e2 commit 1dcac43
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 92 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
include README.md
include requirements.txt
include LICENSE.md
44 changes: 18 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# workbench-app-example

## Jupyter proxy

[Jupyter-example-proxy](https://github.com/huntdatacenter/jupyter-example-proxy) is using this package as an example of web application that can be started from Workbench.

## Web application example

Just a random web applications that says hello world (you should replace this with your own):

```
src/workbench_app
```

## Development

Create virtual environment if not existing yet:

```
Expand Down Expand Up @@ -27,38 +41,16 @@ flask --app src/workbench_app/wsgi run

Open in browser: http://127.0.0.1:5000/

## Jupyter proxy

Proxy extension that provides Icon and starting instructions for you web application:

```
src/workbench_app_proxy
```

## Web application

Just a random web applications that says hello world (you should replace this with your own):
### Running with gunicorn

```
src/workbench_app
```bash
gunicorn -w 4 workbench_app.wsgi:app --bind=127.0.0.1:5000
```

## Installation
### Install from repo

Direct setup for development / testing purposes:

```bash
python3 -m pip install git+https://github.com/huntdatacenter/workbench-app-example.git@main#egg=workbench-app-example
```

Quick run locally with docker:

```bash
make rebuild
```

## Running with gunicorn

```bash
gunicorn -w 4 workbench_app.wsgi:app --bind=127.0.0.1:5000
```
18 changes: 0 additions & 18 deletions docker-compose.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
flask
jupyter-server-proxy>=3.2.2
jupyter-contrib-nbextensions
32 changes: 0 additions & 32 deletions setup/Dockerfile

This file was deleted.

14 changes: 0 additions & 14 deletions setup/jupyter_notebook_config.py

This file was deleted.

0 comments on commit 1dcac43

Please sign in to comment.