Skip to content

Commit 313a6db

Browse files
author
Xing Han Lu
authored
Merge pull request #612 from plotly/remove-buildpacks-port-analytics
Remove buildpacks for port analytics app Former-commit-id: 972c6fd
2 parents 49567fe + 61b8d38 commit 313a6db

File tree

9 files changed

+15
-16
lines changed

9 files changed

+15
-16
lines changed

apps/dash-port-analytics/.buildpacks

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/dash-port-analytics/.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/venv
22

3-
/node_modules
4-
package-lock.json
3+
/gulp/node_modules
4+
/gulp/package-lock.json
5+
/gulp/yarn.lock
56

67
# cache files
78
.idea

apps/dash-port-analytics/config/constants.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
APP_CREDENTIALS = {"appsilon": "app51l0n"}
2-
31
LOC_GDANSK = [54.348852934741934, 18.63384246826172]
42
LOC_GDYNIA = [54.51450519845187, 18.502178192138672]
53
LOC_KALINGRAD = [54.65695329137598, 20.36865234375]
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ const sass = require('gulp-sass');
55
// compile scss into css
66
function style() {
77
// outputStyle props: nested, expanded, compact, compressed
8-
return gulp.src('./scss/**/*.scss')
8+
return gulp.src('../scss/**/*.scss')
99
.pipe(sass({outputStyle: 'compressed'}).on('error', sass.logError))
10-
.pipe(gulp.dest('./assets/css'));
10+
.pipe(gulp.dest('../assets/css'));
1111
};
1212

1313
function watch(){
14-
gulp.watch('./scss/**/*.scss', style);
14+
gulp.watch('../scss/**/*.scss', style);
1515
};
1616

1717
exports.style = style;
File renamed without changes.

apps/dash-port-analytics/main.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import dash
2-
import dash_auth
32
import dash_core_components as dcc
43
import dash_html_components as html
54
import pandas as pd
@@ -47,7 +46,6 @@
4746
external_scripts=external_scripts,
4847
external_stylesheets=external_stylesheets,
4948
)
50-
# auth = dash_auth.BasicAuth(app, constants.APP_CREDENTIALS)
5149
app.title = strings.APP_NAME
5250
app.config["suppress_callback_exceptions"] = True
5351
server = app.server

apps/dash-port-analytics/readme.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
```
1111
pip install -r requirements.txt
1212
```
13-
```
14-
npm install
15-
```
1613
- Run the app:
1714
```
1815
python main.py
@@ -21,14 +18,21 @@ python main.py
2118
```
2219
https://localhost:9000
2320
```
24-
- on the another terminal run below to start gulp scss/js bundler
21+
# Gulp
22+
23+
- Go to directory `~/path-to-repo/gulp/` and install dependencies
24+
```
25+
npm install
26+
```
27+
- run below to start gulp scss/js bundler
2528
```
2629
gulp watch
2730
```
2831
__optional if you don't have gulp on your machine then you can install it through:__
2932
```
3033
npm install --save gulp-install
3134
```
35+
#
3236

3337
## To add additional port data
3438
- [Here's a step-by-step guide](add_data.md)

apps/dash-port-analytics/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@ numpy~=1.20.1
55
plotly~=4.14.3
66
scipy~=1.6.1
77
dash~=1.19.0
8-
dash-auth~=1.4.1
98
dash-bootstrap-components~=0.11.3
109
gunicorn~=20.0.4
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python-3.7.6
1+
python-3.8.0

0 commit comments

Comments
 (0)