Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noahflk/railtrack
Next.js and Supabase app to track your train journeys in Europe
https://github.com/noahflk/railtrack
nextjs react supabase tailwindcss trpc
Last synced: 7 days ago
JSON representation
Next.js and Supabase app to track your train journeys in Europe
- Host: GitHub
- URL: https://github.com/noahflk/railtrack
- Owner: noahflk
- License: agpl-3.0
- Created: 2022-04-16T12:22:54.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-28T20:16:29.000Z (3 months ago)
- Last Synced: 2024-10-30T03:42:53.281Z (3 months ago)
- Topics: nextjs, react, supabase, tailwindcss, trpc
- Language: TypeScript
- Homepage: https://railtrack.ch
- Size: 10.8 MB
- Stars: 377
- Watchers: 3
- Forks: 35
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
- my-awesome-list - railtrack
README
railtrack ๐ค
Web app to track your train journeys in Europe---
Railtrack
Track your train journeys in Europe
Try it out ยป
# 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](https://transport.opendata.ch). Railtrack will give you an overview and statistics about your past journeys.
# Development
## Built With
- [Next.js](https://nextjs.org/)
- [React](https://reactjs.org/)
- [tRPC](https://trpc.io/)
- [Prisma](https://www.prisma.io/)
- [Supabase](https://supabase.com/)
- [Tailwind](https://tailwindcss.com/)## Local setup
After cloning the repository, install the dependencies.
```bash
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.
```bash
cp .env-example .env
# now edit the .env file
```Push the schema to the database
```bash
npx prisma db push
```Run the app locally. If you want to avoid setting up Google Sign Up, log in using email/password.
```bash
pnpm run dev
```Run tests locally. For this you need to have a local instance of the app running.
```bash
pnpm run test
```## License
`railtrack` is available under the AGPL-3.0 license. See the [LICENSE](LICENSE.md) file for more info.