Skip to content

Etsija/DigiTransit-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DigiTransit-v2

Expo Router app for nearby public transit discovery with native Google Maps support and a Mapbox-backed web map.

Get started

  1. Install dependencies

    pnpm install
  2. Configure DigiTransit API access

    cp .env.example .env

    Then set EXPO_PUBLIC_DIGITRANSIT_API_KEY in .env. Register for an API key at https://portal-api.digitransit.fi. If you want Android Google Maps tiles in a development build, also set EXPO_PUBLIC_ANDROID_GOOGLE_MAPS_API_KEY in .env. If you want Google Maps-backed native dark map parity on iOS, also set EXPO_PUBLIC_IOS_GOOGLE_MAPS_API_KEY. If you want the live web map instead of the local fallback surface, set EXPO_PUBLIC_MAPBOX_PUBLIC_TOKEN. You can optionally override the GraphQL endpoint with EXPO_PUBLIC_DIGITRANSIT_API_URL.

    For standalone EAS builds, set the same public variables in the EAS environment used by the build profile. The preview profile expects the EAS environment named preview.

    Local standalone APKs are written to artifacts/android/digitransit-preview.apk by default. You can override the path with ANDROID_STANDALONE_OUTPUT_PATH=/your/path/app.apk.

    After adding the Google Maps key, rebuild the Android app so the native manifest metadata is regenerated. After adding the iOS Google Maps key, rebuild the iOS app so the config plugin can regenerate native settings.

  3. Start the app

    pnpm start
  4. Regenerate GraphQL types after editing any .graphql document

    pnpm codegen

In the output, you'll find options to open the app in a

You can start developing by editing files under src/. Route entry points live in src/app, feature code in src/features, and platform adapters in src/core/platform.

Quality checks

Run all checks at once:

pnpm check

Individual checks:

Command Purpose
pnpm lint ESLint
pnpm typecheck TypeScript type checking
pnpm format:check Prettier formatting validation
pnpm test Jest unit/integration tests
pnpm test:ci Full test suite (CI mode)
pnpm codegen Regenerate GraphQL types

Learn more

To learn more about developing your project with Expo, look at the following resources:

Join the community

Join our community of developers creating universal apps.

About

Finally, a completely renewed version of this great app.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors