Skip to content

HostelPro is a full-stack Next.js application for modern hostel management. It includes a public site for applications and notices, an admin dashboard for comprehensive control over residents, rooms, and finances, and a dedicated student portal. AI integration helps streamline complaint and inquiry processing for efficient management.

License

Notifications You must be signed in to change notification settings

Manish9322/HostelPro

Repository files navigation

HostelPro

Welcome to HostelPro, a full-stack Next.js 15 application designed for modern hostel management. This repository contains a comprehensive solution for both residents and administrators.

HostelPro

What's inside?

This project includes a suite of features to manage a hostel efficiently:

Features

  • Public Website: A public-facing site for prospective students to apply, check their application status, and view notices.
  • Admin Dashboard: An internal administrative portal for managing students, rooms, applications, complaints, finances, and more.
  • Student Portal: A dedicated portal for residents to view their profile, manage payments, file complaints, and access hostel information.

Packages & Libraries

  • @/components: Reusable React components, including a UI library from Shadcn.
  • @/lib: Shared utilities, type definitions, and mock data.
  • @/models: Mongoose schemas for database models.
  • @/ai: Genkit flows for AI-powered features like complaint categorization.
  • @/app/api: Next.js API routes for backend logic.

Architecture

  • Framework: Next.js 15 (App Router).
  • State Management: React Hooks and Context API for client-side state.
  • Authentication: Simple token-based authentication for both student and admin portals.
  • Database: MongoDB with Mongoose for data modeling.
  • Styling: Tailwind CSS with Shadcn UI for a modern, responsive design system.
  • AI Integration: Google's Genkit for intelligent features.

Getting Started

To get started with this project, you'll need to have Node.js, npm/yarn/pnpm, and a MongoDB instance available.

1. Install Dependencies

From the root of the project, run:

npm install

2. Set up Environment Variables

Create a .env file at the root of the project. You can copy the contents from .env.local.example if it exists, or create it from scratch.

Required variables:

  • MONGODB_URI: Your MongoDB connection string.
  • RAZORPAY_KEY_ID: Your Razorpay Key ID for payment processing.
  • RAZORPAY_KEY_SECRET: Your Razorpay Key Secret.
  • GEMINI_API_KEY: Your Google AI API key for Genkit features.

3. Run Development Servers

To run the application in development mode, execute the following command from the root directory:

npm run dev

This will start the development server, typically available at http://localhost:3002.

Building for Production

To build the application for production, run:

npm run build

HostelPro is a full-stack application designed to empower hostel administrators and enhance the resident experience by providing a scalable, maintainable, and high-performance architecture. It combines a public-facing website, a student portal, and an administrative dashboard into a single, cohesive system.

The project includes applications such as a public-facing website, a secure student portal, and a comprehensive admin dashboard, along with shared components and utilities for a streamlined development experience.

The platform is built with a modern technology stack, including Next.js 15, React, TypeScript, Tailwind CSS, Shadcn UI, Mongoose, and Genkit for AI-powered features. This ensures a highly modular and efficient application.


Copyright Notice

HostelPro

Copyright © 2024. All rights reserved.

This project, HostelPro, is a demonstration of a full-stack hostel management system. Unauthorized use, modification, or distribution of the software or its components is prohibited unless explicitly stated under the terms of the license.

By using or contributing to this project, you agree to comply with the terms and conditions defined in the license. You may use the software for personal or educational purposes, provided that proper credit is given to the original author.


License Information

This project is licensed under the MIT License. Please refer to the LICENSE file in this repository for detailed license information. The terms of the license govern the use, distribution, and modification of the software.


Disclaimer

The software is provided "as-is" without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and non-infringement. In no event shall the authors or copyright holders be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the software or the use or other dealings in the software.


Trademarks

Any trademarks, service marks, or other marks associated with this project or its components are the property of their respective owners.

About

HostelPro is a full-stack Next.js application for modern hostel management. It includes a public site for applications and notices, an admin dashboard for comprehensive control over residents, rooms, and finances, and a dedicated student portal. AI integration helps streamline complaint and inquiry processing for efficient management.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published