Skip to content

scott-memco/mcptest2

Repository files navigation

Admin Portal Demo

E-commerce admin application for managing products and inventory.

Setup

  1. Install dependencies:
npm install
  1. Copy environment variables:
cp .env.example .env
  1. Start the development server:
npm run dev

The server will start on http://localhost:5000

Running Tests

npm test

Docker

Build and run with Docker:

docker-compose up --build

PM2

Run in production with PM2:

pm2 start pm2.config.js

Project Structure

  • packages/app/ - Main Express application
  • packages/shared/ - Shared middleware and utilities
  • packages/app/views/ - Handlebars templates
  • packages/app/routes/ - Express route handlers

API Endpoints

  • GET / - Home page
  • GET /api/admin/dashboard - Admin dashboard (requires auth)
  • POST /api/admin/add-product - Add new product (requires auth)
  • POST /api/admin/edit-product/:id - Edit product (requires auth)
  • GET /api/products - List products
  • GET /api/products/:id - Get product by ID

Authentication

Include an Authorization header with a valid token:

Authorization: dev-token-123

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published