This repository contains the frontend web application for the Saint Louis University Center for Culture and the Arts (CCA) Ticket Monitoring System.
It is built using React (Vite), styled with Tailwind CSS, and integrated with Pusher for real-time updates.
- Interactive and responsive user interface
- Role-based dashboard views for CCA Head, Trainer, Distributor, and Audience
- Real-time notifications and updates via Pusher
- Integration with backend REST API for all data operations
- Continuous deployment on Vercel
Before running the frontend locally, make sure you have:
-
Clone the repository
git clone <frontend_repository_url> cd frontend
-
Install dependencies
npm install
-
Create a
.envfile in the root directory and add the following variables:VITE_API_BASE_URL=http://localhost:3000 VITE_PUSHER_KEY=your_pusher_key VITE_PUSHER_CLUSTER=ap1 VITE_APP_WRITE_PROJECT_ID=your_appwrite_project_id VITE_APP_WRITE_BUCKET_ID=your_appwrite_bucket_id VITE_APP_WRITE_ENDPOINT=your_appwrite_endpoint_id
Start the frontend development server:
npm run devBy default, it runs on: http://localhost:5173
Make sure your backend server is running before accessing the site.
The frontend communicates with the backend through the VITE_API_BASE_URL variable.
Real-time events are managed via Pusher, synchronized with backend configurations.
Ensure all .env values match those used in the backend for seamless communication.
This frontend is preconfigured for deployment on Vercel:
- Push your changes to the main branch on GitHub.
- Import the repository into Vercel.
- Add the environment variables (VITE_API_BASE_URL, VITE_PUSHER_KEY, VITE_PUSHER_CLUSTER) in the Vercel project settings.
- Click Deploy.
Vercel will automatically build, optimize, and host your frontend.
The source code for both frontend and backend is hosted in private GitHub repositories. Request access from the development team to clone and deploy the projects.
Both systems are architecturally configured to work seamlessly with Vercel’s deployment environment, ensuring consistent performance, real-time connectivity, and automated updates from GitHub.