Skip to content

Commit fc098b6

Browse files
Refactor2 (#352)
* Adding sending/cancelling delay notifs * refactoring rtf data * finishing refactor * cleaning up
1 parent c6c31a4 commit fc098b6

41 files changed

Lines changed: 105965 additions & 2359 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.babelrc

Lines changed: 0 additions & 11 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,5 @@ Environment variable values can be found by asking a member of Cornell AppDev.
3434
To run ithaca-transit-backend locally, run the following:
3535

3636
```bash
37-
npm run build:dev
38-
npm run start:microservices
39-
npm run start:node
40-
```
41-
42-
- `build:dev` builds node and `start:microservices` starts up its microservices.
43-
44-
- `start:node` runs node inside a docker image; substitute `start:dev` to run on your local computer.
45-
46-
- You can see in package.json that when you run `npm run start:node`, it actually runs `docker-compose up node`. On the other hand, the command for starting development is `npm run start:dev`; in package.json, its value tells us to actually execute some magic (./node_modules/.bin/webpack…).
47-
48-
You only need to run `npm run build:dev` and `npm run start:microservices` once - the "volumes" part of docker-compose.yml allows for hot reloading. However, if you are building an image for production, make sure to do `npm run build:dev` right before doing that. And you will always need to run `start` to run node.
49-
50-
To stop running the microservices:
51-
52-
```
53-
docker-compose down
37+
npm run start:dev
5438
```

docker-compose.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,4 @@ services:
66
- ./service-account-credentials.json:/app/service-account-credentials.json:ro
77
ports:
88
- "8080:3000"
9-
10-
python-app:
11-
image: cornellappdev/transit-python:latest
12-
ports:
13-
- "5000:5000"
9+

env.template

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ GHOPPER=
22
NODE_ENV=
33
PLACES_KEY=
44
PORT=3000
5-
PYTHON_APP=live-tracking
6-
TOKEN=TOKEN
7-
FCM_AUTH_KEY_PATH=FCM_AUTH_KEY_PATH
5+
TOKEN=
6+
FCM_AUTH_KEY_PATH=

ghopper/docker-compose.ghopper.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
services:
22
ghopper-bus:
3+
# Needs to be updated ~semesterly, handled by autodeploy
34
image: cornellappdev/transit-ghopper:${IMAGE_TAG}
45
ports:
56
- "8988:8988"
67

78
ghopper-map:
9+
# Does not need to be updated
810
image: cornellappdev/transit-map:latest
911
ports:
1012
- "8989:8989"
1113

1214
ghopper-walking:
15+
# Does not need to be updated
1316
image: cornellappdev/transit-ghopper-walking:latest
1417
ports:
1518
- "8987:8987"

gtfs/gtfs-realtime.proto

Lines changed: 1213 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)