You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Flybooker is a web application built on the MERN (MongoDB, Express, React, Node.js) stack, secured with Keycloak. It allows users to book flights and manage flight listings. After logging in as a regular user, you can access the flight list, while admins have additional privileges such as deleting flights. The project includes a Docker Compose configuration for running Keycloak and MongoDB. Follow the instructions below to get started with Flybooker.
8
+
9
+
## 🛠️ Technologies Used
10
+
11
+
Flybooker is built using the following technologies:
12
+
13
+
- MongoDB
14
+
- Express
15
+
- React
16
+
- Node.js
17
+
- JavaScript
18
+
- Keycloak
19
+
20
+
## 🚀 Getting Started
21
+
22
+
To start the Flybooker application, follow these steps:
23
+
24
+
1. Run the following command to start Keycloak and MongoDB using Docker Compose:
25
+
26
+
```sh
27
+
docker-compose up
28
+
```
29
+
30
+
2. After the containers are up and running, execute the [script.sh](https://github.com/Piterson25/Flybooker/blob/main/script.sh) script to start the frontend and backend:
31
+
32
+
```sh
33
+
./script.sh
34
+
```
35
+
36
+
This script installs the necessary dependencies and starts the frontend and backend servers.
37
+
38
+
3. Access the Flybooker application by opening your web browser and navigating to [http://localhost:3000](http://localhost:3000).
39
+
40
+
## 🔑 Login Credentials
41
+
42
+
Use the following credentials to log in:
43
+
44
+
Regular User:
45
+
- Username: myuser
46
+
- Password: myuser
47
+
48
+
Admin:
49
+
- Username: myadmin
50
+
- Password: myadmin
51
+
52
+
## 🎉 Features
53
+
### Flight Listing
54
+
Upon logging in as a regular user, you gain access to a flight listing section. Browse through a curated selection of example flights and view their details.
55
+
56
+
### Admin Section
57
+
As an admin, you have additional privileges. In addition to accessing the user flight listing, you can also navigate to the admin section. Explore a broader range of flights and enjoy the ability to delete unwanted flights from the database.
58
+
59
+
## 📄 License
60
+
Flybooker is licensed under the MIT License. See the [LICENSE](https://github.com/Piterson25/Flybooker/blob/main/LICENSE) file for more information.
0 commit comments