This project is a sample Angular application that showcases various tourist destinations in Macedonia.
To run this application, you will need:
To get started with this application, follow these steps:
Clone the repository:
git clone https://github.com/afilipovski/MKRoutes-Angular-Tourism-site-DIGIT-2023.git
Navigate to the project directory:
cd MKRoutes-Angular-Tourism-site-DIGIT-2023
Install the dependencies:
npm install
Start the development server:
ng serve
Open the application in your browser by navigating to http://localhost:4200
.
This application includes the following features:
The following routes are defined in this application:
The home page route displays the list of all tourist destinations.
''
HomeComponent
The place detail route displays the details of a specific tourist destination, identified by its id
parameter.
'place/:id'
PlaceComponent
The signup route displays a form for creating a new user account.
'signup'
SignupComponent
The bookmarks route displays a list of the user's bookmarked tourist destinations.
'bookmarks'
BookmarksComponent
The catch-all route redirects any invalid route to the home page.
'**'
'/'
This application uses Firebase to authenticate users, and store and retrieve data. To use this feature, you will need to provide your own Firebase configuration by setting the firebaseConfig
variable in the environment.ts
and environment.prod.ts
files.
The application uses the OpenWeatherMap API to display the current weather conditions for each tourist destination. When a user navigates to a destination's detail page, the application sends a request to the OpenWeatherMap API with the destination's latitude and longitude coordinates to retrieve the current weather information. The retrieved weather data is then displayed on the page, including the temperature, weather description, and an icon representing the current weather condition.
To deploy this application to a production server, you can use the following command:
ng build --prod