videoflix/frontend
2025-05-14 19:29:24 +02:00
..
.vscode first commit 2024-08-01 11:02:09 +02:00
src fix: show watched icon only for individual watched videos instead of checking overall watched list 2025-05-14 19:29:24 +02:00
.editorconfig first commit 2024-08-01 11:02:09 +02:00
.gitignore Configure baseUrl for dev and prod environments 2024-09-10 04:48:15 +02:00
angular.json Configure baseUrl for dev and prod environments 2024-09-10 04:48:15 +02:00
package-lock.json chore: update project to Angular 19 2025-04-19 17:15:45 +02:00
package.json chore: update project to Angular 19 2025-04-19 17:15:45 +02:00
README.md refactor: apply email format validator to LoginComponent and rename 'mail' to 'email' 2025-05-06 12:50:36 +02:00
tsconfig.app.json first commit 2024-08-01 11:02:09 +02:00
tsconfig.json first commit 2024-08-01 11:02:09 +02:00
tsconfig.spec.json first commit 2024-08-01 11:02:09 +02:00

Frontend

Environment Configuration

In order to manage different configurations for development and production environments, Angular uses the environment.ts and environment.prod.ts files.

Step 1: Creating environment files

You need to create the following files in the src/environments/ directory:

  • environment.ts for development
  • environment.prod.ts for production

Step 2: Add baseUrl and guest account

In the environment.ts & environment.prod.ts file, add the following content:

export const environment = {
  production: false,
  baseUrl: "YOUR_API_URL_HERE",

  // Guest account
  guestEmail: "YOUR_GUEST_EMAIL_HERE",
  guestPassword: "YOUR_GUEST_PASSWORD_HERE",
};