Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
336 commits
Select commit Hold shift + click to select a range
f871110
add publish reducer, reformat, clear message on receive version
landonreed Oct 31, 2016
3dcc399
add publish and handlingFinishedJob actions
landonreed Oct 31, 2016
2670a00
handle null feedInfo
landonreed Oct 31, 2016
de9e746
temporary getRouteName for alerts
landonreed Oct 31, 2016
8a24b3d
refactor, add publish button
landonreed Oct 31, 2016
047c2ed
add back in legacy fields
landonreed Oct 31, 2016
8006d6c
data dump constructor
landonreed Oct 31, 2016
f930add
add external props to dump
landonreed Oct 31, 2016
faa02a5
add constructor for data dump
landonreed Oct 31, 2016
add10cb
mark feedSourceId as jsonview
landonreed Oct 31, 2016
9e91131
mark feedSourceId as jsonprop
landonreed Oct 31, 2016
d12fc76
ignore unknown
landonreed Oct 31, 2016
354321e
fix feedsourceId
landonreed Oct 31, 2016
849b5aa
fix units for project scheduler
landonreed Oct 31, 2016
ba6614b
fix enterprise hidden features
landonreed Oct 31, 2016
6095b49
hide org tab
landonreed Oct 31, 2016
0ca3f1c
hide org/regions tabs for now
landonreed Oct 31, 2016
ce4d2bf
rename agencyExists -> feedExists, refactor editor_mapdb config
landonreed Nov 1, 2016
4f10ddb
throw halt exceptions
landonreed Nov 1, 2016
f85790d
log halts
landonreed Nov 1, 2016
6a5a125
build(yarn): Add yarn, fix install warnings, and remove npm-shrinkwrap.
trevorgerhardt Nov 2, 2016
5627ebf
chore(yarn): Add yarn as a prestart script
trevorgerhardt Nov 2, 2016
518c1b1
refactor(build): Refactor code to build with mastarm
trevorgerhardt Nov 2, 2016
73e2926
refactor(build): Put built files in dist folder
trevorgerhardt Nov 2, 2016
28caf81
fix(client): Fix errors caused by migration
trevorgerhardt Nov 3, 2016
9652d70
fix(icons): Fix icon references
trevorgerhardt Nov 3, 2016
a7953d0
fix(sidebar): Fix the icon in the sidebar and refactor to use CSS.
trevorgerhardt Nov 7, 2016
0ad56c7
update eslint, virtualized-select, dom-helpers
landonreed Nov 14, 2016
41f8039
update sidebar loading...
landonreed Nov 14, 2016
0e42ae9
fix duplicate log in prompt
landonreed Nov 14, 2016
595b83d
update timetable client
landonreed Nov 14, 2016
3af9e80
fix save stop and new trip actions
landonreed Nov 14, 2016
e62c259
various fixes for editor
landonreed Nov 14, 2016
3bc0851
new timetable actions
landonreed Nov 14, 2016
0248fe9
util for timetable actions
landonreed Nov 14, 2016
7863b31
fix popups
landonreed Nov 14, 2016
81f13b7
timetable container
landonreed Nov 14, 2016
511ffe4
initial work on refactoring deploymentviewer
landonreed Nov 14, 2016
0436db5
hide deployment button move publish button
landonreed Nov 14, 2016
254ff5f
timetable changes
landonreed Nov 14, 2016
afb0240
fix null publish of feedsource
landonreed Nov 14, 2016
95b5d54
validate controller
landonreed Nov 14, 2016
3b060c2
revenue time, add halt for validating feed
landonreed Nov 14, 2016
6fc2a4d
number of trips per entity
landonreed Nov 14, 2016
3448d26
try/catches and halts
landonreed Nov 14, 2016
1817057
fix active snapshot
landonreed Nov 14, 2016
ba1ced4
lambdafy
landonreed Nov 14, 2016
74e2780
bump react-virtualized
landonreed Nov 14, 2016
c1bcde9
push url after deployment created
landonreed Nov 15, 2016
b220f08
Merge branch 'dev' into mastarmify
landonreed Nov 15, 2016
d43a642
fix new commits for mastarm
landonreed Nov 15, 2016
9b0af41
fix(html): Fix index.html to load assets with absolute paths.
trevorgerhardt Nov 16, 2016
04fd252
final fixes for mastarmify
landonreed Nov 16, 2016
1bbce2b
add yarn.lcok
landonreed Nov 16, 2016
a70e023
Merge pull request #1 from conveyal/mastarmify
Nov 16, 2016
4a791db
fix timestamp and user email for feed version
landonreed Nov 16, 2016
1c398cf
fix(css, timepicker): fixed issue with timepicker being cut off by si…
landonreed Nov 21, 2016
6389651
fix(editor, timetable): allow null input in timetable cell
landonreed Nov 21, 2016
34f0e29
refactor(editor, timetable): refactor some util functions and add tim…
landonreed Nov 21, 2016
e4a5032
refactor(editor): refactor trip pattern list, make files much, much s…
landonreed Nov 21, 2016
48cb0cf
fix: fix icon for editabletextfield
landonreed Nov 21, 2016
4d7eedb
fix(manager): typo in search placeholder on home page
landonreed Nov 21, 2016
1eea75c
fix(manager): move deployment viewer to nest under projectviewer
landonreed Nov 21, 2016
04da9a2
style(style): find/replace for common standard.js infraction
landonreed Nov 21, 2016
6ee7a1c
chore(gitignore): Ignore non-default configuration files
trevorgerhardt Nov 22, 2016
228ef86
style(linting, style): major fix towards clean lint
landonreed Nov 22, 2016
eacc4d0
build(deploy): Update mastarm and react dependencies. Switch to tempo…
trevorgerhardt Nov 30, 2016
b2e77ec
major refactoring to pass linting and reduce file size
landonreed Dec 6, 2016
3148e94
add reduce-reducers and language packages
landonreed Dec 6, 2016
e23021a
Merge pull request #4 from conveyal/push-production-to-s3
Dec 12, 2016
c364755
add r5 url to config
landonreed Dec 12, 2016
c0a50a1
fix check for s3 on gtfsFile and clean up datastore
landonreed Dec 12, 2016
3390fd4
serve js/css from s3
landonreed Dec 12, 2016
af5dc5c
fix log class
landonreed Dec 12, 2016
f45a6d1
log missing zip error
landonreed Dec 12, 2016
da205c1
fixed merged feed export
landonreed Dec 12, 2016
8a8187c
create feed info if none exists
landonreed Dec 13, 2016
ef35827
add pattern direction
landonreed Dec 13, 2016
f03b22b
better error messages, beginnings of secure requests
landonreed Dec 13, 2016
2487242
de-lambdafy
landonreed Dec 13, 2016
cd45f3b
direction serializer
landonreed Dec 13, 2016
7bef812
add permissions check for edit/approve
landonreed Dec 13, 2016
15face8
delete transport network on delete
landonreed Dec 13, 2016
6570c2d
clean up unused creds
landonreed Dec 13, 2016
27a7c0f
clean up formatting; add ControlPoints layers
landonreed Dec 13, 2016
b68c0ef
modify branding fields
landonreed Dec 13, 2016
8f468e7
add id constructor
landonreed Dec 13, 2016
dc8395a
build only if readingNetworkList missing ID
landonreed Dec 13, 2016
7c5b3b2
make version public
landonreed Dec 13, 2016
015fbac
various refactor/reformatting fixes
landonreed Dec 13, 2016
42319b2
fixes for refactor of editor map
landonreed Dec 13, 2016
69d9612
fix width for panel
landonreed Dec 13, 2016
5eaa66a
hide help modal permanently for now
landonreed Dec 13, 2016
f4772dd
fix undefined map value
landonreed Dec 13, 2016
f823ba1
fix for too-wide icon
landonreed Dec 13, 2016
e37fc9b
added Fare.toGtfs for snapshot export of fares
landonreed Dec 15, 2016
b7cd98c
fix s3 missing object errors on metadata props and fixed name of temp…
landonreed Dec 15, 2016
6f9e5e3
snapshot direct GTFS download
landonreed Dec 15, 2016
d167eea
clientside snapshot download
landonreed Dec 15, 2016
85771e5
controller tweaks
landonreed Dec 15, 2016
8fb6b7c
file download method
landonreed Dec 15, 2016
bbd7ef4
export fares, suppress URL warnings for null values
landonreed Dec 15, 2016
04050fd
add option for cli-specified config files
landonreed Dec 15, 2016
378435c
add isochrone download
landonreed Dec 15, 2016
8fc2641
refactor/reduce EntityList file size
landonreed Dec 15, 2016
adbdbd4
fix TransferPerformance
landonreed Dec 15, 2016
d0605a3
https for esri
landonreed Dec 15, 2016
af6a757
fix isochrone action import
landonreed Dec 15, 2016
41e3713
isochrone misc chores
landonreed Dec 15, 2016
09da5d3
added take snapshot of latest button
landonreed Dec 16, 2016
788b328
delete token after gtfs written (so it doesn't expire before user can…
landonreed Dec 16, 2016
7fd473c
disable make active button for active snapshot
landonreed Dec 16, 2016
653f0f4
fixed null url bug
landonreed Dec 16, 2016
9345678
compute hash on and delete newGtfsFile in FeedSource.fetch
landonreed Dec 16, 2016
48d64cc
FeedSourceController.fetch returns true to avoid Jackson error
landonreed Dec 16, 2016
890b911
add Edit feed button to snapshot panel
landonreed Dec 16, 2016
7d35565
fix stopTree stop insertion
landonreed Dec 19, 2016
fa9f2d8
fix greater than 24 hr time formatting
landonreed Dec 19, 2016
6905407
check for null bounds on OSM extract fetch; print validation processi…
landonreed Jan 6, 2017
9429015
bug fix for error fetching alerts
landonreed Jan 6, 2017
eb60ac7
update comment
landonreed Jan 6, 2017
c20f876
fix floating footer issue
landonreed Jan 6, 2017
89fc33f
check if entity ID exists to avoid overwriting during load
landonreed Jan 11, 2017
e2e94d0
remove halt in validateAll
landonreed Jan 11, 2017
bfe31f5
check for feedVersions
landonreed Jan 12, 2017
36cc94f
fix sidebar width issue
landonreed Jan 12, 2017
b333329
fix width issue
landonreed Jan 12, 2017
6063a08
minHeight for sidebar
landonreed Jan 12, 2017
ecb2d00
fix bs table width issue
landonreed Jan 12, 2017
7479505
fix faulty login cases
landonreed Jan 12, 2017
8ed6a2e
fix link to project
landonreed Jan 12, 2017
8596a4c
change log to warn if not modified
landonreed Jan 12, 2017
b64318c
add props to login func
landonreed Jan 12, 2017
f5a1fba
check for user permissions
landonreed Jan 12, 2017
a89f579
fix grid width and login handler
landonreed Jan 12, 2017
08e3f67
clean up props; check for feedVersions
landonreed Jan 12, 2017
8ee7325
fix deployment creation
landonreed Jan 12, 2017
c56bbb1
check for empty string in addition to null
landonreed Jan 12, 2017
3b3aced
fix bug where addRoute button not shown
landonreed Jan 13, 2017
cbd18fc
sort gtfs stops/routes results by startsWith
landonreed Jan 13, 2017
33232d7
fix(auth): fix check login bug where app logs out if token expired
landonreed Jan 16, 2017
9361359
temporarily add babel-polyfill manually
landonreed Jan 25, 2017
995b675
include babel-polyfill
landonreed Jan 25, 2017
2e41173
fixes to reflect changes in r5
landonreed Jan 25, 2017
b517d63
hide departure times in prod
landonreed Jan 25, 2017
ebda142
ci(travis): add travis
landonreed Jan 26, 2017
303019e
ci(travis): install yarn
landonreed Jan 26, 2017
8b2304c
ci(travis): fix node version with nvm
landonreed Jan 26, 2017
da507c1
ci(travis): add yarn to install node_modules
landonreed Jan 26, 2017
21f499a
style(lint): fix linting issues in js
landonreed Jan 26, 2017
c9b5145
fix(FeedVersionController): fixes issue with uploading feeds
landonreed Jan 26, 2017
21f908e
fix(bootstrap-table): bumped version of react-bootstrap-table to fix …
landonreed Jan 26, 2017
85e9826
fix(EditorMap): added missing addStopToPattern function to AddableSto…
landonreed Jan 27, 2017
cc6492d
fix(EditorMap): fix entityEdited prop for PatternStopPopup
landonreed Jan 27, 2017
f11f9ac
fix(EntityDetails): fix bug where component did not update on activeP…
landonreed Jan 27, 2017
d8cc3b4
docs(deployment): update deployment docs
evansiroky Jan 27, 2017
dd8f6d5
fix(PatternStopCard): partial fix for issue with setting default dwel…
landonreed Jan 27, 2017
8ba7c43
docs(deployment): update docs for mastarm
landonreed Jan 30, 2017
fe0f554
Merge pull request #14 from conveyal/docs-yarn-mastarm
Jan 30, 2017
e9aa594
test(client): add first client-side test
evansiroky Jan 31, 2017
eef8992
style(client): fix linting issues
evansiroky Jan 31, 2017
2fca4e1
fix(TripPatternController): **actually** delete trips for trip patter…
landonreed Jan 31, 2017
f9867e1
fix(TripPatternController): **actually** delete trips for trip patter…
landonreed Jan 31, 2017
9ad0e61
fix(PatternsLayer): fix issue with pattern shape rendering
landonreed Jan 31, 2017
9a6dafd
org id for proj
landonreed Jan 31, 2017
72664df
feat(Project): publish public feeds to s3 static page
landonreed Feb 1, 2017
0e3ea78
fix(MakePublicJob): remove unused velocity imports
landonreed Feb 1, 2017
ed3e93a
fix(TimetableEditor): fix offset for new trips
landonreed Feb 1, 2017
eddb6a4
Merge pull request #17 from conveyal/client-testing
Feb 1, 2017
82a0d36
feat(TimetableEditor): enhance/clarify trip add/clone/offset behavior
landonreed Feb 2, 2017
76813af
Merge branch 'dev' into org-feature
landonreed Feb 2, 2017
dd0d03c
Merge branch 'public-s3-feeds' into org-feature
landonreed Feb 3, 2017
57cb21e
fix(GTFSEditor): change publiclyVisible route field values from 0/1 t…
landonreed Feb 6, 2017
28ca09a
make feed source public/private on isPublic field change
landonreed Feb 6, 2017
5509d3f
feat(Deployments): deploy bundles to s3
landonreed Feb 6, 2017
21994f5
add s3bucket/s3credentials field
landonreed Feb 6, 2017
700cd09
add project id folder prefix to saved deployment bundles
landonreed Feb 6, 2017
2461b73
finish job before return statements for deployments
landonreed Feb 6, 2017
67432d5
fix(DeploymentSettings): add back in deployment config labels
landonreed Feb 6, 2017
ce7b411
fix(GTFSEditor): trip pattern undo change button has been fixed
landonreed Feb 6, 2017
efc0b3e
fix(ErrorMessage): inform users when calendars fail to delete, baseli…
landonreed Feb 6, 2017
c76565f
fix(Datastore): fix for issue when multiple trip saves are attempted
landonreed Feb 7, 2017
c2bf6fa
feat(DeploymentSettings): add requestLogFile setting to OTP router co…
landonreed Feb 8, 2017
a97031f
request log file string
landonreed Feb 8, 2017
31fc58f
really fix trip saving issue, closes #28
landonreed Feb 9, 2017
9689342
fix(TransportNetwork): add r5 version into cached transport network name
landonreed Feb 10, 2017
18e85b8
fix(FeedVersionController): fix hashing on upload
landonreed Feb 10, 2017
89ddec9
fix(TimetableEditor): scroll to end when duplicating rows
landonreed Feb 15, 2017
452ff9f
add keys where missing
landonreed Feb 15, 2017
ff3af3e
tweaks for actions
landonreed Feb 15, 2017
6937765
catch error if pattern drawing fails
landonreed Feb 15, 2017
db2ec13
fix validation
landonreed Feb 15, 2017
3f00eaa
fix icon
landonreed Feb 15, 2017
e9647ae
refactor
landonreed Feb 15, 2017
4404e7d
remove log
landonreed Feb 15, 2017
4fe2396
add setError action and initial work on mapping gtfsIds
landonreed Feb 15, 2017
4a6479d
find entity by gtfsId
landonreed Feb 15, 2017
05b5227
log error
landonreed Feb 15, 2017
3941438
deploy public action
landonreed Feb 15, 2017
295941c
deploy public button and remove this.props
landonreed Feb 15, 2017
ae2c528
line formatting
landonreed Feb 15, 2017
b9580cd
close on shutdown
landonreed Feb 15, 2017
3150f0c
remove logger
landonreed Feb 15, 2017
73c2d3c
remove log
landonreed Feb 15, 2017
d0685dc
add logger
landonreed Feb 15, 2017
17cfd62
fix create account button showing on enterprise instances
landonreed Feb 15, 2017
bfa0606
fix lint issue
landonreed Feb 15, 2017
5ebaaa0
fix(PatternStopCard): fix timepoint saving bug
landonreed Feb 15, 2017
f33a36e
fix bug with click stop strategy
landonreed Feb 15, 2017
a7d33e7
feat(DeploymentViewer): add preview button for testing deployed feeds
landonreed Feb 15, 2017
1458b80
fix(PatternStopsPanel): fallback to straight line if valhalla routing…
landonreed Feb 15, 2017
bb7ba3d
use collapse to smooth collapse animation
landonreed Feb 15, 2017
7883c0d
fix(TimetableEditor): fix delete trips for unsaved trips
landonreed Feb 15, 2017
b461d9c
fix(TimetableEditor): fix copy/paste from excel and (now) google sheets
landonreed Feb 15, 2017
2383fe8
handle null routeId cases
landonreed Feb 15, 2017
371bc32
todo clean up deployment settings
landonreed Feb 17, 2017
b7c0864
add turf bbox calc
landonreed Feb 17, 2017
253b671
bbox for feed version report (dev)
landonreed Feb 17, 2017
cf263c8
add route ID to attributes set on new trip
landonreed Feb 17, 2017
db3df2c
Merge branch 'dev' into org-feature
landonreed Feb 17, 2017
a1f0a3a
work on orgs; user home page
landonreed Feb 17, 2017
818dbea
refactor alerts/signs store
landonreed Feb 17, 2017
8ee89d3
add redux-merge-reducers
landonreed Feb 17, 2017
803f83f
style(client): prefer const
landonreed Feb 17, 2017
21a36d2
revert main.js
landonreed Feb 17, 2017
a752b69
fix reducer import
landonreed Feb 17, 2017
e14b761
remove unused imports
landonreed Feb 17, 2017
9865bd3
line formatting
landonreed Feb 17, 2017
827af00
add logger
landonreed Feb 17, 2017
05d746e
update pub feeds
landonreed Feb 17, 2017
5164bd5
feat(Client): Added concept of organizations to data manager
landonreed Feb 21, 2017
9ad4dc5
update permissions for organizations
landonreed Feb 21, 2017
d32a0f2
fix misc permissions
landonreed Feb 21, 2017
56c76ee
Merge branch 'dev' into org-feature
Feb 21, 2017
9f61f1a
Merge pull request #44 from conveyal/org-feature
Feb 21, 2017
07b25e8
fix bad merge
landonreed Feb 21, 2017
4050739
hide/disable project buttons based on permissions
landonreed Feb 21, 2017
dd4bf4f
hide organizations tab if enterprise
landonreed Feb 21, 2017
ef24be4
Merge branch 'dev' into alerts-signs-refactor
landonreed Feb 21, 2017
bd12790
Merge branch 'alerts-signs-refactor' into dev
landonreed Feb 21, 2017
f08949b
style(client): lint fixes (prefer consts, a11y)
landonreed Feb 21, 2017
291b7ca
lint fixes
landonreed Feb 21, 2017
86a74be
fix path for osm storage
landonreed Feb 22, 2017
6641ffc
feat(AlertEditor): add more detail to alert editor for mtc
landonreed Feb 22, 2017
cbaccf9
hide orgs on enterprise
landonreed Feb 24, 2017
060577b
refactor(ui): refactor ui: remove java and move client code to lib/
landonreed Feb 24, 2017
17eabc8
Merge pull request #45 from conveyal/ui-refactor
Feb 24, 2017
c4588aa
remaining fixes for ui-refactor
landonreed Feb 24, 2017
d3120e8
fix travis and config
landonreed Feb 24, 2017
0332cde
use semantic-release, fix repo URL
landonreed Feb 24, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 0 additions & 18 deletions .babelrc

This file was deleted.

10 changes: 3 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,11 @@ node_modules/
dist
*.log
coverage
.idea
server_config.js
src/main/client/config.js
src/main/resources/public
application.conf
target/
.java-version
datatools.iml
src/main/client/config.js
datatools-manager.iml
config.yml
config_server.yml
configurations/*
!configurations/default
tmp/
26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
language: node_js
notifications:
email: false
node_js:
- '6'
cache:
yarn: true
before_install:
- npm i -g codecov
script:
- yarn run lint
- yarn run cover-client
- codecov
- yarn run build

# If sudo is disabled, CI runs on container based infrastructure (allows caching &c.)
sudo: false

# Notify us of the build status on the Slack channel
notifications:
slack: conveyal:WQxmWiu8PdmujwLw4ziW72Gc

# Push results to codecov.io
after_success:
- bash <(curl -s https://codecov.io/bash)
- yarn run semantic-release
2 changes: 2 additions & 0 deletions config.yml.template
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ application:
gtfs_s3_bucket: bucket-name
port: 4000
title: Data Manager
assets_bucket: bucket-name
logo: http://gtfs-assets-dev.conveyal.com/data_manager.png # defaults to src/main/client/assets/application_logo.png
active_project: project-id
notifications_enabled: false
Expand All @@ -16,6 +17,7 @@ application:
changelog_url: https://changelog.example.com
support_email: support@example.com
osm_vex: http://localhost:1000
r5: http://localhost:8080
date_format: MMM Do YYYY

auth0:
Expand Down
8 changes: 0 additions & 8 deletions config_server.yml.template

This file was deleted.

66 changes: 66 additions & 0 deletions configurations/default/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
entries:
- lib/main.js:dist/index.js
- lib/index.css:dist/index.css
application:
data:
mapdb: /path/to/mapdb
gtfs: /path/to/gtfs
editor_mapdb: /path/to/editor
regions: /path/to/regions/geojson
use_s3_storage: false
gtfs_s3_bucket: bucket-name
port: 4000
title: Data Manager
assets_bucket: bucket-name
logo: http://gtfs-assets-dev.conveyal.com/data_manager.png # defaults to src/main/client/assets/application_logo.png
active_project: project-id
notifications_enabled: false
public_url: http://localhost:9000
docs_url: http://docs.example.com
changelog_url: https://changelog.example.com
support_email: support@example.com
osm_vex: http://localhost:1000
r5: http://localhost:8080
date_format: MMM Do YYYY

auth0:
domain: your-auth0-domain
client_id: your-auth0-client-id
MAPZEN_TURN_BY_TURN_KEY: API_KEY
mapbox:
access_token: MAPBOX_ACCESS_TOKEN
map_id: conveyal.ie3o67m0
modules:
enterprise:
enabled: false
editor:
enabled: true
legacy_editor:
enabled: false
url: http://localhost:9001
alerts:
enabled: false
use_extension: mtc
sign_config:
enabled: false
user_admin:
enabled: true
validator:
enabled: true
deployment:
enabled: false
gtfsapi:
enabled: false
load_on_fetch: false
load_on_startup: false
use_extension: mtc
update_frequency: 3600 # in seconds

extensions:
transitland:
enabled: true
api: https://transit.land/api/v1/feeds
transitfeeds:
enabled: true
api: http://api.transitfeeds.com/v1/getFeeds
key: your-api-key
15 changes: 9 additions & 6 deletions docs/dev/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Prerequisites

The application features a Spark-powered Java backend and a Javascript frontend written with React and Redux. To install and deploy the application, you will need Java 8, Maven, Node/npm, and Webpack.
The application features a Spark-powered Java backend and a Javascript frontend written with React and Redux. To install and deploy the application, you will need Java 8, Maven, Node/npm, yarn, and [mastarm](https://github.com/conveyal/mastarm).

User athentication is done via [Auth0](http://auth0.com). You will need an Auth0 account and application to use the Data Manager.

Expand Down Expand Up @@ -95,16 +95,17 @@ To allow for the creation, deletion and editing of users you must generate a tok

## Building and Running the Application

Install the Javascript dependencies using npm:
Install the Javascript dependencies using yarn:

```bash
$ npm install
$ yarn
```

Build the frontend using webpack:
Build and deploy the frontend to s3 using npm script (which calls [mastarm](https://github.com/conveyal/mastarm)):

```bash
$ webpack
$ npm run deploy -- s3://$S3_BUCKET_NAME/dist
>>>>>>> Stashed changes
```

Package the application using Maven:
Expand All @@ -119,7 +120,9 @@ Deploy the application with Java:
$ java -jar target/datatools.jar
```

The application should now be accessible at `http://localhost:9000` (or whatever port you specified in `config.yml`).

The application back-end should now be running at `http://localhost:9000` (or whatever port you specified in `config.yml`).
The front-end assets are pointed to by the back end at whatever s3 bucket name is specified in `config.yml` at `application.assets_bucket`.

## Configuring Modules

Expand Down
10 changes: 6 additions & 4 deletions docs/dev/development.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Development

## Using `combine-serve`
## mastarm

Spark does not hot-reload static web files, i.e. the application frontend. To make life easier when doing frontend development, we recommend using [combine-serve](https://github.com/conveyal/combine-serve) to serve both the backend and frontend as a unified service. Used in conjunction with `webpack --watch`, this will eliminate the need to constantly rebuild/reload the frontend for testing.
We use Conveyal's front-end JS tool-belt [`mastarm`](https://github.com/conveyal/mastarm) to build, run, and lint while developing.

For example, if running the Java backend on port 9000 (typically via an IDE such as IntelliJ), and you want to serve the combined application on port 9001 for development purposes, use:
To kick off a development server at [http://localhost:9966](http://localhost:9966):

```
combine-serve --serve / src/main/resources/public/ --proxy / http://localhost:9000 --port 9001
npm start
```

This will use `mastarm` to run a browserify server at the above port along with a proxy for the back-end API, which is assumed to be running on http://localhost:4000.
26 changes: 13 additions & 13 deletions gtfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
fields:
- name: "agency_id"
required: false
inputType: ID
inputType: GTFS_ID
columnWidth: 12
helpContent: "The agency_id field is an ID that uniquely identifies a transit agency. A transit feed may represent data from more than one agency. The agency_id is dataset unique. This field is optional for transit feeds that only contain data for a single agency."
- name: "agency_name"
Expand Down Expand Up @@ -126,10 +126,10 @@
placeholder: contact@agency.org
columnWidth: 12
helpContent: "The agency_email field contains a single valid email address actively monitored by the agency’s customer service department. This email address will be considered a direct contact point where transit riders can reach a customer service representative at the agency."
- name: agencyBrandingUrl
- name: agency_branding_url
required: false
displayName: Agency branding URL
datatools: true
datatools: false
placeholder: https://agency.org/assets/agency/XYZ
inputType: URL
columnWidth: 12
Expand All @@ -141,12 +141,12 @@
fields:
- name: "stop_id"
required: true
inputType: ID
inputType: GTFS_ID
columnWidth: 6
helpContent: "The stop_id field contains an ID that uniquely identifies a stop or station. Multiple routes may use the same stop. The stop_id is dataset unique."
- name: "stop_code"
required: false
inputType: ID
inputType: GTFS_ID
columnWidth: 6
helpContent: "The stop_code field contains short text or a number that uniquely identifies the stop for passengers. Stop codes are often used in phone-based transit information systems or printed on stop signage to make it easier for riders to get a stop schedule or real-time arrival information for a particular stop."
- name: "stop_name"
Expand Down Expand Up @@ -233,16 +233,16 @@
required: true
inputType: DROPDOWN
options:
- value: 0
- value: false
text: 'No'
- value: 1
- value: true
text: 'Yes'
columnWidth: 6
adminOnly: true
# helpContent: The route_id field contains an ID that uniquely identifies a route. The route_id is dataset unique.
- name: route_id
required: true
inputType: ID
inputType: GTFS_ID
columnWidth: 5
helpContent: The route_id field contains an ID that uniquely identifies a route. The route_id is dataset unique.
- name: route_short_name
Expand Down Expand Up @@ -309,10 +309,10 @@
text: Black
columnWidth: 6
helpContent: The route_text_color field can be used to specify a legible color to use for text drawn against a background of route_color. The color must be provided as a six-character hexadecimal number, for example, FFD700. If no color is specified, the default text color is black (000000).
- name: routeBrandingUrl
- name: route_branding_url
required: false
displayName: Route branding URL
datatools: true
datatools: false
placeholder: https://agency.org/assets/route/1234
inputType: URL
columnWidth: 12
Expand All @@ -334,7 +334,7 @@
helpContent: "The service_id contains an ID that uniquely identifies a set of dates when service is available for one or more routes. This value is referenced from thecalendar.txt or calendar_dates.txt file."
- name: "trip_id"
required: true
inputType: ID
inputType: GTFS_ID
columnWidth: 6
helpContent: "The trip_id field contains an ID that identifies a trip. The trip_id is dataset unique."
- name: "trip_headsign"
Expand Down Expand Up @@ -460,7 +460,7 @@
fields:
- name: "service_id"
required: true
inputType: ID
inputType: GTFS_ID
columnWidth: 6
helpContent: "The service_id contains an ID that uniquely identifies a set of dates when service is available for one or more routes. Each service_id value can appear at most once in a calendar.txt file. This value is dataset unique. It is referenced by the trips.txt file."
- name: "description"
Expand Down Expand Up @@ -567,7 +567,7 @@
fields:
- name: "fare_id"
required: true
inputType: ID
inputType: GTFS_ID
columnWidth: 6
helpContent: "The fare_id field contains an ID that uniquely identifies a fare class. The fare_id is dataset unique."
- name: "price"
Expand Down
Loading