Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementig cors #79

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

Implementig cors #79

wants to merge 14 commits into from

Commits on Sep 11, 2024

  1. Create docker-image.yml

    Katzzer authored Sep 11, 2024
    Configuration menu
    Copy the full SHA
    466b549 View commit details
    Browse the repository at this point in the history
  2. Create LICENCE

    ali-bouali authored and Katzzer committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    405106b View commit details
    Browse the repository at this point in the history
  3. Update LICENSE

    ali-bouali authored and Katzzer committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    a372c94 View commit details
    Browse the repository at this point in the history
  4. Delete undefined LICENCE

    ali-bouali authored and Katzzer committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    76806df View commit details
    Browse the repository at this point in the history
  5. Update database credentials and configuration

    Modified the `application.yml` and `docker-compose.yml` files to use 'postgres' as the database username and password. Also changed the JPA hibernate `ddl-auto` configuration from 'create-drop' to 'update' for better consistency during development.
    Katzzer committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    a74f739 View commit details
    Browse the repository at this point in the history
  6. Add PostgreSQL service to Docker workflow

    Incorporated PostgreSQL service to the GitHub Actions workflow for building Docker images. The setup ensures the database is ready before Maven builds, supporting integration tests. Adjusted formatting and fixed Java version specification.
    Katzzer committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    0cbabee View commit details
    Browse the repository at this point in the history
  7. Add Dockerfile for Java application

    Introduce a Dockerfile to containerize a Java application using OpenJDK 17 on Alpine Linux. The Dockerfile copies the JAR file from the build artifacts and sets the entry point to run the application.
    Katzzer committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    2eb10be View commit details
    Browse the repository at this point in the history
  8. Simplify JAR file path in Dockerfile

    Updated the ARG JAR_FILE to eliminate the 'api/' prefix, ensuring consistency with the copy command. Also added spacing in ENTRYPOINT for better readability.
    Katzzer committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    4d8c2b9 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2024

  1. Add user existence check during registration

    Implemented a check to verify if a user with the same email already exists during registration. If a duplicate user is detected, a custom exception is thrown and an appropriate error message is returned to the client.
    Katzzer committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    7c3892f View commit details
    Browse the repository at this point in the history
  2. Add food-app service and set Docker Compose version to 3.8

    Updated the docker-compose.yml to use version 3.8. Added a new service named 'food-app' with its necessary configuration, including environment variables, ports, networks, dependencies, and restart policy.
    Katzzer committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    9a6a605 View commit details
    Browse the repository at this point in the history
  3. Add logging functionality to the authentication service

    Integrated the `@Slf4j` annotation to enable logging in `AuthenticationService.java` and `SecurityApplication.java`. Logging now captures user existence checks and registration token creation, replacing print statements with log entries.
    Katzzer committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    b77aee4 View commit details
    Browse the repository at this point in the history
  4. Update version to 0.0.2-SNAPSHOT and add logging for user creation

    Updated project version in pom.xml to 0.0.2-SNAPSHOT. Added logs to indicate the creation of 'Admin' and 'Manager' users in SecurityApplication.java. Corrected the manager's first and last name in the registration request.
    Katzzer committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    230a48e View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2024

  1. Set user role to USER during registration

    Updated the `register` method in `AuthenticationController` to set the user role to `USER` by default. This ensures that all new users are assigned the `USER` role upon registration.
    Katzzer committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    9079ddf View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2024

  1. Add CorsConfig class to handle CORS settings

    This commit introduces a new CorsConfig class to manage Cross-Origin Resource Sharing (CORS) settings. It allows credentials, supports all headers and methods, and specifically allows requests from "http://localhost:3000". This enhances security and flexibility in handling CORS requests.
    Katzzer committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    07a97c8 View commit details
    Browse the repository at this point in the history