โ ๏ธ Note: It may take 50 to 160 seconds for the events to be loaded due to the cold start delay on a free Render account.
To test the application, log in using:
- Username:
Wimpie Blok
- Password:
Wimpie1234
โ ๏ธ Important: Do NOT click the โDeleteโ button on the user account page. If you do, youโll need a new test account.
- You can find alternative credentials in this GitHub file:
/website-backend/src/data/users.json
- Or simply create a new account via the signup page.
npm install
npm audit fix # Optional, if needed
npm run start # Starts on port 5173
npm install
npm audit fix # Optional, if needed
npm run start # Starts on port 3000
npx prisma studio
To simplify development and deployment, absolute URLs are used when making API requests:
fetch(`${import.meta.env.VITE_API_URL}/events/${eventId}`)
Using a full base URL via import.meta.env.VITE_API_URL
avoids the need to switch between relative paths (like /api/...
) in development vs. production. This ensures consistency and reduces manual adjustments across environments.
- โ
Works seamlessly with environment variables (e.g.,
.env.local
,.env.production
) - โ Prevents CORS issues when frontend and backend are hosted on different domains
- โ Suitable for both local development and split deployment (e.g., Render)
โน๏ธ
VITE_API_URL
is defined in your.env
file and points to the backendโs base URL (e.g.,http://localhost:3000
for local or your Render backend URL in production).
This project was originally developed as a monorepo fullstack application (frontend + backend in one).
โ ๏ธ However, due to Renderโs free-tier limitations, the project has been split into two public repositories for deployment:
website-frontend
website-backend
Although hosted separately, both are part of the same project and communicate via API endpoints. The frontend uses the backend through a base URL defined in environment variables.
๐งฉ In a professional setup (like Vercel, AWS, or Docker), the app can run as a single fullstack application again.
- The
.env
file is included for testing purposes. - Integration and unit tests are still being updated due to recent project changes.
- Testing suite (Unit, API & Integration)
- Auth flow (Forgot Password, Secure Token Handling)
- Technical documentation (Setup Guide, API References)