Skip to content

DJSanch/Inventory_Management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inventory Management

A full-stack Inventory Management System with:

  • Frontend: Next.js (React, Tailwind CSS)
  • Backend: FastAPI (Python, SQLAlchemy, JWT Auth)
  • Database: SQLite (local) or PostgreSQL (production recommended)
  • Deployment: Vercel (frontend), Render (backend)

Features

  • User authentication (JWT)
  • Role-based access (Admin, Manager, Employee)
  • Product inventory management (CRUD)
  • Order management and order history
  • Category management
  • User profile with image upload
  • Users log (login/logout tracking)
  • Fully responsive design with mobile-friendly navigation

Getting Started

Backend (FastAPI)

  1. Install dependencies:
    cd backend
    pip install -r requirements.txt
  2. Run locally:
    uvicorn app.main:app --reload
  3. API docs: Visit http://localhost:8000/docs

Frontend (Next.js)

  1. Install dependencies:
    cd frontend
    npm install
  2. Set environment variable:
    • Create .env.local in frontend/:
      NEXT_PUBLIC_API_URL=http://localhost:8000
      
  3. Run locally:
    npm run dev
  4. Visit: http://localhost:3000

Deployment

Backend (Render)

  • Deploy the backend folder as a web service.
  • Set environment variables as needed (e.g., SECRET_KEY).
  • Note: For persistent file uploads, use AWS S3 or similar (Render disk is ephemeral).

Frontend (Vercel)

  • Deploy the frontend folder.
  • Set NEXT_PUBLIC_API_URL to your Render backend URL in Vercel project settings.

Notes

  • Profile images: For production, use S3 or another cloud storage for uploads.
  • Responsive UI: The app is fully responsive and mobile-friendly.
  • Role-based navigation: Admins see all features, Managers have limited access, Employees see only dashboard/account.

Feel free to contribute or open issues for improvements!

Releases

No releases published

Packages

No packages published

Languages