Welcome to the FindMyRoute project! FindMyRoute is a web application for public transport that allows users to search for bus and train routes between cities, purchase tickets, and manage their accounts. This README provides an overview of how to use the application, including setup instructions and basic usage guidelines.
-
Clone the FindMyRoute repository to your local machine:
git clone https://github.com/NedzmijaMuminovic/FindMyRoute
-
Navigate to the project directory and open your API in Visual Studio. (FindMyRouteAPI.sln)
-
Open the Package Manager Console in order to generate a local SQL database named "FindMyRoute" and run these commands:
add-migration testmigration update-database
-
Run the API.
-
To populate the database with sample data for demonstration purposes, run the "Generate" function in your Swagger. You will find it under the "TestniPodaci" section.
-
Open the Angular project (angular_app) in your preferred IDE or editor (WebStorm, VS Code...) and install the dependencies:
npm install @angular-devkit/build-angular --force
-
Start the Angular development server:
ng serve
FindMyRoute has different user roles with varying functionalities:
-
Basic User: You can create your own account and log in as a basic user, and if you do everything right, you should receive a welcome email upon successfully registering for an account on FindMyRoute. On the other hand, if you are feeling too lazy for that, you can just use the username "test1" and the password "test1". Basic users have the ability to edit their profiles.
-
Employee of a Public Transport Company: Log in with the username "radnik1" and the password "radnik1" to access employee functionalities. Employees can add new routes, delete existing routes, and edit company details.
-
Administrator: Log in with the username "admin," the password "admin," and later the PIN "3004" to access administrative functionalities. Administrators can add new employees and new companies to the application, or delete existing ones.
To search for routes between cities:
-
Visit the FindMyRoute web application.
-
Use the starting point and destination textboxes to enter your cities (try Livno and Mostar).
-
Click the search button to get a list of routes between the specified cities. If no direct route is available, the application will suggest routes with transfers (try Livno and Blagaj).
To purchase tickets:
-
Register an account or log in if you haven't already.
-
Search for your desired route.
-
Click on the route to see details.
-
Select the number of tickets you want to purchase and the date you want to travel on.
-
Proceed to checkout and complete the ticket purchase.
-
When you make a purchase, you will receive an email confirmation for your ticket purchase. This email will include details of your purchase, including the route, date, and number of tickets.
- The application provides help buttons on every component/page to assist users in understanding how to use each feature. Either way, we are sure you will get the hang of it. Thank you for checking out our app!