2025-react-gent8 created by GitHub Classroom
  • TypeScript 87.8%
  • JavaScript 10.3%
  • CSS 1.7%
  • HTML 0.1%
  • Dockerfile 0.1%
Find a file
2025-06-22 19:57:55 +02:00
.github/workflows
cypress
public
src routing fixen voor responsible 2025-06-21 10:54:09 +02:00
.gitignore
.yarnrc.yml
components.json
cypress.config.js
Dockerfile
eslint.config.js
index.html
nginx.conf
package.json
README.md
tsconfig.app.json
tsconfig.json
tsconfig.node.json
vite.config.ts
yarn.lock

SDP2 - React Gent Groep 8

Groepsleden

Git gebruikersnaam Naam Email
dencall Deniz Callens deniz.callens@student.hogent.be
maxeAdams Maxe Adams maxe.adams@student.hogent.be
Alex-Emanuel Alex Emanuel alex.emanuel@student.hogent.be
BrittEmanuel2001 Britt Emanuel britt.emanuel@student.hogent.be
Milly-HoGent Emilia Daelman emilia.daelman@student.hogent.be

Environment Configuration (.env)

This frontend application requires a configuration file to specify the location of its corresponding backend API.

Instructions:

  1. Create a file named .env in the root directory of this frontend project (e.g., alongside package.json).

  2. Add the following content to the .env file:

    # The base URL for the backend API
    VITE_API_URL=http://localhost:9000/api
    

Explanation:

  • VITE_API_URL: This variable tells the frontend application where to send API requests. The default value http://localhost:9000/api assumes your backend service (2025-nodejs-gent8) is running locally on port 9000.
  • Adjust the URL: If your backend runs on a different port or address, update the value accordingly.
  • VITE_ Prefix: Vite (the build tool used in this project) requires environment variables that need to be exposed to the client-side code to be prefixed with VITE_. Variables without this prefix will not be accessible in your frontend JavaScript/TypeScript.
  • .gitignore: The .env file is listed in the .gitignore file and should not be committed to version control. This prevents accidental exposure of potentially sensitive configuration details.