Railtrack screenshot

Railtrack

Author Avatar Theme by Noahflk
Updated: 14 Mar 2025
423 Stars

Next.js and Supabase app to track your train journeys in Europe

Categories

Overview

Railtrack is a tool that allows users to track their train journeys with public transport in and around Switzerland. The journey data is sourced from the Swiss public transport API. Users can gain insights and statistics about their past journeys through Railtrack.

Features

  • Journey Tracking: Keep track of your train journeys in Switzerland.
  • Public Transport Integration: Utilizes data from the Swiss public transport API.
  • Overview and Statistics: Provides users with insights and statistics about their historical journeys.
  • Built With Next.js, React, RPC, Prisma, Supabase, and Tailwind.

Installation

  1. Clone the Railtrack repository.
  2. Install dependencies using a package manager like npm or yarn:
    npm install
    
  3. Set up local environment variables with your personal Supabase and Mapbox tokens.
  4. Create your own Supabase project and Mapbox account to obtain the required tokens.
  5. Push the schema to the database.
  6. Run the Railtrack app locally. If you prefer to skip setting up Google Sign Up, log in using email/password.
  7. Run tests locally. Ensure you have a local instance of the app running.

Summary

Railtrack is a useful tool for individuals looking to track and analyze their train journeys within Switzerland. With integration to the Swiss public transport API, users can conveniently monitor their transportation history and access valuable statistics. The tool is built with a robust tech stack including Next.js, React, RPC, Prisma, Supabase, and Tailwind, offering a seamless user experience.