Skip to content

BasaltHQ/erp-be-official

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

33 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Varuni Backoffice

A comprehensive AI-powered restaurant management system built with Next.js, featuring advanced scheduling, inventory management, invoicing, and analytics capabilities.

Features

🎯 Core Functionality

  • AI-Powered Management: Varuni AI assistant provides intelligent insights and recommendations
  • Restaurant-Specific Design: Tailored for restaurant operations and workflows
  • Modern UI/UX: Clean, responsive design with Shadcn UI components
  • Real-Time Updates: Live data synchronization and updates

πŸ“Š Dashboard & Analytics

  • Comprehensive performance metrics and KPIs
  • Revenue tracking and forecasting
  • Customer satisfaction analytics
  • Staff performance monitoring
  • Interactive charts and visualizations with Recharts

πŸ‘₯ Team Management

  • Staff scheduling and shift management
  • Performance tracking and ratings
  • Role-based access control
  • Toast POS integration for employee data
  • Attendance and time tracking

πŸ“¦ Inventory Management

  • Real-time stock tracking
  • Low stock alerts and notifications
  • Supplier management
  • AI-powered reorder suggestions
  • Category-based organization
  • Cost tracking and optimization

πŸ’° Invoicing & Finance

  • Invoice generation and management
  • Payment tracking
  • Financial analytics and reporting
  • Client management
  • Revenue forecasting

πŸ›‘οΈ Security & Permissions

  • Role-based access control
  • Custom permission system
  • User management
  • Session management
  • Secure authentication

πŸ”— Integrations

  • Toast POS: Sync team members, roles, and data
  • GraphQL: Modern API architecture
  • MongoDB: Scalable database solution
  • External APIs: Extensible integration framework

Technology Stack

Frontend

  • Next.js 15.4: React framework with App Router
  • TypeScript: Type-safe development
  • Tailwind CSS: Utility-first CSS framework
  • Shadcn UI: Modern component library
  • Recharts: Interactive charts and graphs
  • React Hook Form: Form management
  • Zod: Schema validation

Backend & Data

  • GraphQL: API query language
  • MongoDB: NoSQL database
  • Mongoose: MongoDB object modeling
  • Apollo Client: GraphQL client

Development Tools

  • ESLint: Code linting
  • TypeScript: Static type checking
  • Tailwind CSS: Styling
  • Git: Version control

Quick Start

Prerequisites

  • Node.js 18+
  • npm or yarn
  • MongoDB (optional for full functionality)

Installation

  1. Clone the repository

    git clone <repository-url>
    cd varuni-backoffice
  2. Install dependencies

    npm install
  3. Start the development server

    npm run dev
  4. Open your browser Navigate to http://localhost:3000

Demo Login

For demonstration purposes, use any valid email and password (6+ characters) to access the system.

Project Structure

varuni-backoffice/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/                    # Next.js App Router pages
β”‚   β”‚   β”œβ”€β”€ dashboard/          # Dashboard pages
β”‚   β”‚   β”‚   β”œβ”€β”€ analytics/      # Analytics & reporting
β”‚   β”‚   β”‚   β”œβ”€β”€ inventory/      # Inventory management
β”‚   β”‚   β”‚   β”œβ”€β”€ invoicing/      # Financial management
β”‚   β”‚   β”‚   β”œβ”€β”€ scheduling/     # Staff scheduling
β”‚   β”‚   β”‚   β”œβ”€β”€ settings/       # System settings
β”‚   β”‚   β”‚   └── team/          # Team management
β”‚   β”‚   β”œβ”€β”€ login/             # Authentication
β”‚   β”‚   └── page.tsx           # Root page
β”‚   β”œβ”€β”€ components/            # Reusable components
β”‚   β”‚   β”œβ”€β”€ layout/            # Layout components
β”‚   β”‚   └── ui/               # Shadcn UI components
β”‚   └── lib/                  # Utilities and helpers
β”œβ”€β”€ public/                   # Static assets
└── package.json             # Dependencies and scripts

Key Features Breakdown

🧠 Varuni AI Assistant

  • Intelligent Insights: Contextual recommendations for operations
  • Predictive Analytics: Forecast trends and optimize decisions
  • Natural Language Interface: Chat-based interaction
  • Proactive Suggestions: Automated alerts and recommendations

πŸ“… Advanced Scheduling

  • Calendar View: Visual schedule management
  • AI Optimization: Intelligent shift recommendations
  • Role-Based Assignments: Match skills to roles
  • Availability Tracking: Staff availability management

πŸ“ˆ Comprehensive Analytics

  • Revenue Analysis: Detailed financial tracking
  • Performance Metrics: Staff and operational KPIs
  • Customer Insights: Satisfaction and retention analytics
  • Trend Analysis: Historical data and predictions

πŸ”§ System Administration

  • User Management: Role-based access control
  • Integration Management: External system connections
  • System Configuration: Customizable settings
  • Data Export: Comprehensive reporting

Customization

Branding

The application is white-labeled for "Varuni" but can be easily customized:

  • Update branding in src/app/login/page.tsx
  • Modify colors in tailwind.config.js
  • Update logos and assets in public/

Adding Features

  1. Create new pages in src/app/dashboard/
  2. Add navigation items in src/components/layout/dashboard-layout.tsx
  3. Implement new UI components using Shadcn patterns

API Integration

  • GraphQL schemas can be added to src/lib/graphql/
  • MongoDB models in src/lib/models/
  • API routes in src/app/api/

Production Deployment

Environment Variables

Create a .env.local file:

MONGODB_URI=your_mongodb_connection_string
NEXTAUTH_SECRET=your_auth_secret
NEXTAUTH_URL=your_domain
TOAST_API_KEY=your_toast_api_key

Build and Deploy

npm run build
npm start

Recommended Hosting

  • Vercel: Optimal for Next.js applications
  • Netlify: Alternative with great CI/CD
  • AWS/Azure/GCP: For enterprise deployments

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For support and questions:

  • Create an issue in the repository
  • Contact the development team
  • Check the documentation for common solutions

Built with ❀️ for the restaurant industry

Powered by Varuni AI Technology

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages