@@ -14,6 +14,7 @@ The **Event-Exchange-Platform** supports the organization of internal events at
1414- Automatically allocate participants to seats using smart matching algorithms
1515- Avoid repeated pairings across events
1616
17+
1718---
1819
1920## ✨ Key Features
@@ -46,17 +47,22 @@ The **Event-Exchange-Platform** supports the organization of internal events at
4647To run the platform locally or deploy on-premise:
4748
4849``` bash
49- # Clone the repository
50+ # Clone the repository
5051git clone https://github.com/DigitalProductInnovationAndDevelopment/Event-Exchange-Platform.git
5152
5253# Navigate to project root
5354cd Event-Exchange-Platform
5455
5556# Start all services using Docker Compose
56- docker- compose up --build
57+ docker compose -f docker- compose.yaml up --build
5758```
5859
59- Ensure you have the appropriate ` .env ` file configured for environment-specific variables.
60+ Ensure you have the appropriate ` .env ` file configured for environment-specific variables for production
61+ You can take a look at the .env file in the GitHub repository.
62+ ``` bash
63+ # Start all services using Docker Compose for production
64+ docker compose -f docker-compose.prod.yaml up --build
65+ ```
6066
6167---
6268
@@ -76,6 +82,80 @@ You'll find step-by-step guides on:
7682
7783> This documentation is intended for both event organizers and developers contributing to the platform.
7884
85+ ---
86+ ## GitLab Authentication Setup
87+
88+ To use GitLab authentication with this application, you'll need to obtain a Client ID and Client Secret from GitLab. Follow these steps:
89+
90+ ### Creating a GitLab OAuth Application
91+
92+ 1 . ** Sign in to GitLab**
93+ - Navigate to [ gitlab.com] ( https://gitlab.com ) (or your GitLab instance)
94+ - Sign in with your GitLab account
95+
96+ 2 . ** Access User Settings**
97+ - Click on your profile picture in the top-right corner
98+ - Select "Edit profile"
99+ - ![ Screenshot Where to Edit Profile] ( backend/readme_assets/gitlab1.png )
100+
101+ 3 . ** Navigate to Applications**
102+ - In the left sidebar, click on "Applications"
103+ - Click the "New application" button
104+ - ![ Screenshot Where to Applications] ( backend/readme_assets/gitlab2.png )
105+ - ![ Screenshot Where to New Application] ( backend/readme_assets/gitlab3.png )
106+
107+ 4 . ** Configure Your Application**
108+ - ** Name** : Enter a descriptive name for your application (e.g., "My App Name")
109+ - ** Redirect URI** : Enter your application's callback URL
110+ ```
111+ https://applicationserver.itestra.com:8000/login/oauth2/code/gitlab
112+ ```
113+ *Note: Replace with your actual domain and callback path in production*
114+ - **Scopes**: Select the required scopes for your application:
115+ - `read_user` - Read user information
116+ - **Confidential**: Leave this checked (recommended for server-side applications)
117+ - 
118+ 5. **Save the Application**
119+ - Click "Save application"
120+
121+ 6. **Copy Your Credentials**
122+ After creating the application, you'll see:
123+ - **Application ID** (this is your `CLIENT_ID`)
124+ - **Secret** (this is your `CLIENT_SECRET`)
125+
126+ ⚠️ **Important**: Copy these values immediately and store them securely. The secret will not be shown again.
127+
128+ - 
129+
130+ ## Environment Configuration
131+
132+ Add the obtained credentials to your environment variables:
133+
134+ ```bash
135+ # .env file
136+ GITLAB_INSTANCE_CLIENT_ID=your_application_id_here
137+ GITLAB_INSTANCE_CLIENT_SECRET=your_secret_here
138+ ```
139+
140+ ## For GitLab Self-Managed Instances
141+
142+ If you're using a self-managed GitLab instance:
143+
144+ 1 . Replace ` gitlab.com ` with your GitLab instance URL
145+ 2 . Follow the same steps above on your instance
146+ 3 . Update your application configuration to point to your GitLab instance:
147+
148+ ``` bash
149+ GITLAB_INSTANCE_ADDRESS=https://your-gitlab-instance.com
150+ ```
151+
152+ ## Security Notes
153+
154+ - Keep your Client Secret confidential and never commit it to version control
155+ - Use environment variables or secure secret management systems
156+ - In production, ensure your redirect URI uses HTTPS
157+ - Regularly rotate your credentials for enhanced security
158+
79159---
80160
81161## 📦 Repository Structure
@@ -84,8 +164,9 @@ You'll find step-by-step guides on:
84164Event-Exchange-Platform/
85165├── backend/ # Spring Boot backend
86166├── frontend/ # React + Tailwind frontend
87- ├── docker-compose.yml # Service orchestration
88- ├── .env.example # Sample environment config
167+ ├── docker-compose.yml # Service orchestration for development/test
168+ ├── docker-compose.prod.yml # Service orchestration for production
169+ ├── .env # Sample environment config
89170└── README.md # You're here!
90171```
91172
0 commit comments