This README provides a comprehensive guide for setting up and using the KRL (Commuterline) Schedule Web Application. This app offers up-to-date and accurate schedules for commuter trains between various stations, including Yogyakarta and Palur. The app is built with SvelteKit and leverages Tailwind CSS for styling and Svelte for state management.
- Real-time Schedule Updates: Fetches and displays the latest train schedules from the official Commuterline Indonesia API.
- Dynamic Station Selection: Users can choose their departure and arrival stations from a predefined list.
- Favorites Management: Users can save and manage their favorite routes for quick access.
- Time Adjustment: Option to view schedules based on current time or a predefined time frame.
- Responsive Design: Tailored to provide a seamless experience across various devices.
- Node.js
- pnpm (Node Package Manager)
- Git (optional)
- Clone the Repository (Optional)
git clone [repository URL] cd [repository name]
- Install Dependencies
pnpm install
-
Development Mode
pnpm run dev
This command runs the app in development mode. Open
http://localhost:3000
to view it in the browser. -
Production Mode
pnpm run build pnpm run start
This builds the app for production and serves the production build.
- Choose the departure and arrival stations from the dropdown lists.
- The schedule will update automatically based on your selection.
- Save frequently used routes as favorites for easy access.
- Manage and rearrange your favorites as needed.
- Switch between current time and a custom time range to view different schedules.
- The application is designed with accessibility in mind, ensuring a user-friendly experience for all.
Contributions to improve the application are welcome. Please follow these steps to contribute:
- Fork the repository.
- Create a new branch for your feature.
- Make your changes.
- Submit a pull request with a comprehensive description of your updates.
For any feedback or support issues, please contact us via Twitter.
This project is licensed under the MIT License.