Once you've created a project and installed dependencies with npm install
(or pnpm install
or yarn
), 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/
This project is powered by SvelteKit
.