Node version: 20+
Once you've created a project and installed dependencies with npm install
, start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
The project is configured to use the production instance of the web service (https://gtfs-validator-web-mbzoxaljzq-ue.a.run.app).
In order to use a locally running version of the web service, update apiRoot
in web/client/src/routes/+page.svelte
to http://localhost:8080
.
To start the service, run the following in the root of the project.
./gradlew bootRun
To create a production version of your app:
npm run build
You can preview the production build with npm run preview
.
This app is currently hosted on Google Cloud Storage. To deploy these updates, first install and authenticate the gcloud
command line interface.
- Build the production version of the app:
npm run build
- Upload the app to Google Cloud Storage:
gcloud storage cp --recursive ./build/* gs://gtfs-validator-web/
Component and E2E tests are executed with Cypress. Cypress tests are located in the cypress folder.
Steps to run cypress tests locally:
- Open a terminal and start the web application with Cypress profile
npm run start:cypress:config
- In another terminal, run cypress headless cypress or cypress dashboard: headless:
npm run cypress:run
dashboard:
npm run cypress:open
Cypress is configured to capture videos of the test executions and get screenshots(on error). To debug Cypress fails on the pipeline, check the Cypress GitHub workflow artifacts for videos and screenshots.
This project is powered by SvelteKit
.