Index: .dockerignore
===================================================================
--- .dockerignore	(revision bf18ca470c976f4e869fd0b440ca1a5f596fcb82)
+++ .dockerignore	(revision bf18ca470c976f4e869fd0b440ca1a5f596fcb82)
@@ -0,0 +1,14 @@
+**/.vs
+**/.vscode
+**/bin
+**/obj
+**/.git
+**/.gitignore
+**/.dockerignore
+**/Dockerfile
+**/docker-compose.*
+**/*.md
+**/charts
+**/secrets.*.yaml
+**/.env
+**/appsettings.Development.json
Index: Dockerfile
===================================================================
--- Dockerfile	(revision bf18ca470c976f4e869fd0b440ca1a5f596fcb82)
+++ Dockerfile	(revision bf18ca470c976f4e869fd0b440ca1a5f596fcb82)
@@ -0,0 +1,27 @@
+# Use the official .NET SDK image for building
+FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
+WORKDIR /src
+
+# Copy csproj and restore dependencies
+COPY ["iknow-api/iknow-api.csproj", "iknow-api/"]
+RUN dotnet restore "iknow-api/iknow-api.csproj"
+
+# Copy the rest of the files and build
+COPY . .
+WORKDIR "/src/iknow-api"
+RUN dotnet build "iknow-api.csproj" -c Release -o /app/build
+
+# Publish the application
+FROM build AS publish
+RUN dotnet publish "iknow-api.csproj" -c Release -o /app/publish /p:UseAppHost=false
+
+# Use the runtime image for the final stage
+FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS final
+WORKDIR /app
+EXPOSE 8080
+COPY --from=publish /app/publish .
+
+# Set environment variables
+ENV ASPNETCORE_URLS=http://+:8080
+
+ENTRYPOINT ["dotnet", "iknow-api.dll"]
Index: iknow-api/Controllers/UserController.cs
===================================================================
--- iknow-api/Controllers/UserController.cs	(revision 2e17229353155473cf2d2d9d350c50ee7be12fe2)
+++ iknow-api/Controllers/UserController.cs	(revision bf18ca470c976f4e869fd0b440ca1a5f596fcb82)
@@ -15,8 +15,65 @@
             _userService = userService;
         }
+
+        //  "birthInfo": {
+        //    "placeOfBirth": "Скопје",
+        //    "municipalityOfBirth": "Скопје",
+        //    "country": "Република Северна Македонија"
+        //  },
+        //  "previousEducation": {
+        //    "type": "Гимназиско образование",
+        //    "profession": "",
+        //    "average": "54,857",
+        //    "language": "Македонски",
+        //    "country": "",
+        //    "previousUniversity": "Гимназиско образование",
+        //    "previousFaculty": "",
+        //    "previousStudyMode": ""
+        //  },
+        //  "enrollmentInfo": {
+        //    "enrollmentYear": "2023",
+        //    "status": "Редовен",
+        //    "cycle": "Прв циклус",
+        //    "program": "Примена на информациски технологии",
+        //    "quota": "Кофинансирање-Редовен (2023, 24600)",
+        //    "secondaryEducationNumber": "",
+        //    "previousEducationCredits": ""
+        //  },
+        //  "contact": {
+        //    "placeOfResidence": "Скопје",
+        //    "municipalityOfResidence": "Кисела Вода - Скопје",
+        //    "country": "Република Северна Македонија",
+        //    "address": "Драчево",
+        //    "temporaryAddress": "",
+        //    "phone": "",
+        //    "mobilePhone": "075295582",
+        //    "passportNumber": "",
+        //    "passportExpiryDate": "",
+        //    "email": "stefansaveski19@gmail.com",
+        //    "microsoftEmail": "stefan.saveski@students.finki.ukim.mk"
+        //  }
+        //}
         [Authorize]
         [HttpGet("getUser")]
         public async Task<IActionResult> getUser()
         {
+            //{
+            //  "personalInfo": {
+            //    "index": "233149/2023",
+            //    "embg": "/////////////",
+            //    "lastName": "Савески",
+            //    "middleName": "Дејан",
+            //    "firstName": "Стефан",
+            //    "maidenName": "",
+            //    "dateOfBirth": "19.08.2004",
+            //    "gender": "машки",
+            //    "nationality": "Македонец",
+            //    "citizenship": "Република Северна Македонија",
+            //    "scholarship": "Користи",
+            //    "currentPlan": "2023",
+            //    "registryNumber": "",
+            //    "notes": "Систематски преглед Студира 3 години",
+            //    "studyGroup": ""
+            //  },
             var authHeader = Request.Headers["Authorization"].ToString();
             if (authHeader.StartsWith("Bearer "))
@@ -26,5 +83,65 @@
                 var userData = await _userService.GetUserData(token);
                 if (userData == null) return Ok(new { info = "can't get info" });
-                return Ok(new { User = userData });
+                var personalInfo = new
+                {
+                    index = userData.Index ?? "",
+                    embg = userData.EMBG ?? "",
+                    lastName = userData.Surname ?? "",
+                    middleName = userData.MiddleName ?? "",
+                    firstName = userData.Name ?? "",
+                    maidenName = "", // Property doesn't exist in User model
+                    dateOfBirth = userData.Bday.ToString("dd.MM.yyyy"),
+                    gender = userData.Gender ?? "",
+                    nationality = userData.Nationality ?? "",
+                    citizenship = userData.Citizenship ?? "",
+                    scholarship = "",
+                    currentPlan = userData.EnrollmentInfo?.EnrollmentYear.ToString() ?? "",
+                    registryNumber = "",
+                    notes = "",
+                    studyGroup = ""
+                };
+                var birthInfo = new
+                {
+                    placeOfBirth = userData.ContactInfo?.City ?? "",
+                    municipalityOfBirth = userData.ContactInfo?.Municipality ?? "",
+                    country = userData.Citizenship ?? ""
+                };
+                var previousEducation = new
+                {
+                    type = userData.HighSchool?.HighSchoolType.ToString() ?? "",
+                    profession = "",
+                    average = userData.HighSchool?.GPA.ToString() ?? "",
+                    language = userData.Nationality ?? "",
+                    country = userData.Nationality ?? "",
+                    previousUniversity = userData.HighSchool?.HighSchoolType.ToString() ?? "",
+                    previousFaculty = "", // Property doesn't exist in HighSchool model
+                    previousStudyMode = "" // Property doesn't exist in HighSchool model
+                };
+                var enrollmentInfo = new
+                {
+                    enrollmentYear = userData.EnrollmentInfo?.EnrollmentYear.ToString() ?? "",
+                    status = userData.EnrollmentInfo?.StudyStatus ?? "",
+                    cycle = "Прв циклус",
+                    program = userData.EnrollmentInfo?.Major?.Name ?? "",
+                    quota = userData.EnrollmentInfo?.Quota.ToString() ?? "",
+                    secondaryEducationNumber = "",
+                    previousEducationCredits = ""
+                };
+                var contact = new
+                {
+                    placeOfResidence = userData.ContactInfo?.City ?? "",
+                    municipalityOfResidence = userData.ContactInfo?.Municipality ?? "",
+                    country = userData.Citizenship ?? "",
+                    address = userData.ContactInfo?.Address ?? "",
+                    temporaryAddress = "",
+                    phone = "",
+                    mobilePhone = userData.ContactInfo?.PhoneNumber ?? "",
+                    passportNumber = "",
+                    passportExpiryDate = "",
+                    email = userData.Email ?? "",
+                    microsoftEmail = userData.ContactInfo?.MicrosoftEmail ?? ""
+                };
+                return Ok(new { personalInfo = personalInfo, birthInfo = birthInfo, previousEducation = previousEducation, enrollmentInfo = enrollmentInfo, contact = contact });
+                //return Ok(new { User = userData });
             }
             return null;
Index: iknow-api/Program.cs
===================================================================
--- iknow-api/Program.cs	(revision 2e17229353155473cf2d2d9d350c50ee7be12fe2)
+++ iknow-api/Program.cs	(revision bf18ca470c976f4e869fd0b440ca1a5f596fcb82)
@@ -9,4 +9,20 @@
 
 var builder = WebApplication.CreateBuilder(args);
+
+// Add CORS policy
+builder.Services.AddCors(options =>
+{
+    options.AddPolicy("AllowFrontend", policy =>
+    {
+        var allowedOrigins = builder.Configuration.GetSection("AllowedOrigins").Get<string[]>() 
+            ?? new[] { "http://localhost:3000" };
+        
+        policy.WithOrigins(allowedOrigins) // Your frontend URL(s)
+              .AllowAnyHeader()
+              .AllowAnyMethod()
+              .AllowCredentials();
+    });
+});
+
 builder.Services.AddAuthentication(options =>
 {
@@ -64,4 +80,7 @@
 }
 
+// Enable CORS - must be called before UseAuthentication and UseAuthorization
+app.UseCors("AllowFrontend");
+
 app.UseHttpsRedirection();
 app.UseAuthentication(); // <-- must come BEFORE UseAuthorization
Index: iknow-api/appsettings.json
===================================================================
--- iknow-api/appsettings.json	(revision 2e17229353155473cf2d2d9d350c50ee7be12fe2)
+++ iknow-api/appsettings.json	(revision bf18ca470c976f4e869fd0b440ca1a5f596fcb82)
@@ -6,4 +6,7 @@
     }
   },
+  "AllowedOrigins": [
+    "http://localhost:3000"
+  ],
   "ConnectionStrings": {
     "DefaultConnection": "Host=ep-divine-term-aghfotgc-pooler.c-2.eu-central-1.aws.neon.tech; Database=neondb; Username=neondb_owner; Password=REDACTED_ROTATE_ME; SSL Mode=VerifyFull; Channel Binding=Require;"
Index: render.yaml
===================================================================
--- render.yaml	(revision bf18ca470c976f4e869fd0b440ca1a5f596fcb82)
+++ render.yaml	(revision bf18ca470c976f4e869fd0b440ca1a5f596fcb82)
@@ -0,0 +1,18 @@
+services:
+  - type: web
+    name: iknow-api
+    env: docker
+    region: frankfurt
+    plan: free
+    dockerfilePath: ./Dockerfile
+    dockerContext: .
+    envVars:
+      - key: ASPNETCORE_ENVIRONMENT
+        value: Production
+      - key: AllowedOrigins__0
+        value: https://your-frontend-domain.com
+      - key: ConnectionStrings__DefaultConnection
+        sync: false
+      - key: Jwt__Key
+        generateValue: true
+        sync: false
