A simple progressive web app for showing the next departures of transit stops in the Stockholm regional transit network.
To get any real data you need to register and apply for an API key at: https://www.trafiklab.se/api
- Install npm dependencies
- and
webpack
andeslint
globally
- and
- Start development server:
npm start
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_REGION
- e.g.
eu-west-1
- e.g.
SL_REAL
- API key for SL Realtidsinformation 4
DEV
true
when developing, otherwise false
API_ROOT
- Your back-end root
SL_ORIGINS
*
when developing, otherwise the URI to your site
Requirements:
- aws cli
- S3 bucket
- AWS user with access to S3 and Lambda
Commands:
- npm run build
- npm run deploy-client
- npm run deploy-server
AWS Policy for the S3 bucket:
{
"Id": "Policy1487516784389",
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1487516781997",
"Action": [
"s3:GetObject"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::<bucket_name>/*",
"Principal": "*"
}
]
}