vue-ssr-server

Official

Build secure Express APIs with MongoDB

Authore-xode
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill solves the problem of consistently wiring Express 5 backend routes to MongoDB while enforcing authentication, authorization, rate limits, and safe request/error handling in the Vue SSR Starter Kit.

Core Features & Use Cases

  • Express 5 route-module setup (setupXRoute) with standardized error responses: Add a new endpoint by exporting a setup function and registering it in createApiRouter(db), using the required try/catch + console.error + i18n error key response shape.
  • MongoDB data access with injected singleton lifecycle and validation: Use mongoConnect/mongoClose with a shared client, validate ObjectIds via parseObjectId before any _id query, and apply parsePagination for list endpoints.
  • Production-grade security and abuse prevention per endpoint: Apply auth/admin middleware guards (requireAuth, requireAdmin, setMiddlewareDb) and mount production-only limiters (e.g., signup/auth/account/contact) to protect sensitive routes.

Use Case: You need to add a new admin-only endpoint that lists users with pagination; this Skill guides you to validate ids, query via helpers in dbHelpers.js, enforce requireAdmin(db), and return errors using i18n keys.

Quick Start

Add your new endpoint by creating a setupXRoute(app, db) module under src/api/, registering it inside createApiRouter(db) in router.js, validating inputs with dbHelpers (e.g., parseObjectId/parsePagination), and wrapping handler logic in the mandated try/catch that returns the correct i18n error keys.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: vue-ssr-server
Download link: https://github.com/e-xode/vue-ssr/archive/main.zip#vue-ssr-server

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.