A Next.js application that helps students find available classrooms at UTEC campus.
UTEC Classrooms displays real-time information about which classrooms are currently available at the UTEC campus. It works by:
- Fetching classroom event data from the UTEC API
- Filtering classrooms with no active events for each hour of the day
- Displaying the free classrooms in an intuitive interface
- Real-time availability status for all classrooms
- Filter by time slot, building, or classroom type
- Mobile-friendly responsive design
- Quick view of upcoming availability
First, clone the repository:
git clone https://github.com/yourusername/utec-classrooms.git
cd utec-classroomsInstall dependencies:
npm install
# or
yarn install
# or
pnpm installCreate a .env.local file with the necessary API configuration:
NEXT_PUBLIC_API_URL=https://api.utec.edu.pe/reserva-api
# Add other environment variables as needed
Run the development server:
npm run dev
# or
yarn dev
# or
pnpm devOpen http://localhost:3000 with your browser to see the application.
- Frontend: Next.js, React, Tailwind CSS
- Database: Xata for filtering and querying
- API Integration: UTEC Reservation API
The application uses the UTEC API to fetch classroom data:
curl --request GET \
--url 'https://api.utec.edu.pe/reserva-api/filtro/aula/reservable/tipoaula?codsede=2&codtipoaula=0' \
--header 'X-Auth-Token: YOUR_AUTH_TOKEN'Contributions are welcome! Here's how you can contribute:
- Fork the repository
- Create a new branch (
git checkout -b feature/amazing-feature) - Make your changes
- Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow the existing code style and naming conventions
- Write clear commit messages
- Add tests for new features when possible
- Update documentation as needed
This project is licensed under the MIT License - see the LICENSE file for details.
- UTEC for providing the classroom reservation API
- All contributors who help improve this project