This repository contains the source code for the Right Track Progressive Web App, a website used to search commuter train schedules and display real-time status and track information.
The website uses Vue.js as the javascript framework, Vuetify as the material design UI framework, and Webpack to bundle the javascript dependencies. It also leverages sql.js to perform SQLite queries directly in the browser, enabling offline train schedule searches.
User management, user favorites, and real-time information are provided via a Right Track API Server. Access to a Right Track API Server with a valid API Key is required for the website to properly function.
- From within the project directory, install all dependencies:
npm install
- Create a local configuration file,
config.local.json
, and provide information for the Right Track API Server
{
"api": {
"host": "https://api.righttrack.io",
"clientId": "xxx",
"clientKey": "yyy"
}
}
- Build the site
npm run build
- Serve the
dist
directory