E-commerce admin application for managing products and inventory.
- Install dependencies:
npm install- Copy environment variables:
cp .env.example .env- Start the development server:
npm run devThe server will start on http://localhost:5000
npm testBuild and run with Docker:
docker-compose up --buildRun in production with PM2:
pm2 start pm2.config.jspackages/app/- Main Express applicationpackages/shared/- Shared middleware and utilitiespackages/app/views/- Handlebars templatespackages/app/routes/- Express route handlers
GET /- Home pageGET /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 productsGET /api/products/:id- Get product by ID
Include an Authorization header with a valid token:
Authorization: dev-token-123