Home

Awesome

<h1 align="center"> railtrack 🛤 </h1> <p align="center"> Web app to track your train journeys in Europe </p>
<p align="center"> <a href="https://github.com/noahflk/railtrack"> <img src="https://raw.githubusercontent.com/noahflk/railtrack/main/public/images/screenshot-marketing.png" alt="Railtrack Logo"> </a> <h3 align="center">Railtrack</h3> <p align="center"> Track your train journeys in Europe <br /> <a href="https://railtrack.ch"><strong>Try it out »</strong></a> </p> </p>

Track your train journeys in Europe

Railtrack allows you to keep track of your journeys with public transport in and around Switzerland. Journey data comes from the Swiss public transport API. Railtrack will give you an overview and statistics about your past journeys.

Development

Built With

Local setup

After cloning the repository, install the dependencies.

pnpm install

Set up the local environment variables with your personal Supabase and Mapbox tokens. You must create your own Supabase project and Mapbox account to get these tokens.

cp .env-example .env
# now edit the .env file

Push the schema to the database

npx prisma db push

Run the app locally. If you want to avoid setting up Google Sign Up, log in using email/password.

pnpm run dev

Run tests locally. For this you need to have a local instance of the app running.

pnpm run test

License

railtrack is available under the AGPL-3.0 license. See the LICENSE file for more info.