mirror of
https://github.com/HoGentProjectenII/2025-react-gent8.git
synced 2026-04-20 18:24:33 +02:00
2025-react-gent8 created by GitHub Classroom
- TypeScript 87.8%
- JavaScript 10.3%
- CSS 1.7%
- HTML 0.1%
- Dockerfile 0.1%
|
|
||
|---|---|---|
| .github/workflows | ||
| cypress | ||
| public | ||
| src | ||
| .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 | |
|---|---|---|
| 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:
-
Create a file named
.envin the root directory of this frontend project (e.g., alongsidepackage.json). -
Add the following content to the
.envfile:# 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 valuehttp://localhost:9000/apiassumes 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 withVITE_. Variables without this prefix will not be accessible in your frontend JavaScript/TypeScript..gitignore: The.envfile is listed in the.gitignorefile and should not be committed to version control. This prevents accidental exposure of potentially sensitive configuration details.