Skip to content

Getting Started

  • Node.js (ESM modules, type: "module")
  • MongoDB instance reachable via MONGO_URI

All variables below are required unless noted.

NameRequiredDefaultDescription
PORTNo4000Server port.
MONGO_URIYes-MongoDB connection string.
JWT_SECRETYes-Secret used to sign JWTs.
FRONTEND_URLYes-Allowed CORS origin and base for email links.
EMAILJS_SERVICE_IDYes-EmailJS service ID.
EMAILJS_PUBLIC_KEYYes-EmailJS public key.
EMAILJS_PRIVATE_KEYYes-EmailJS private key.
EMAILJS_TEMPLATE_REGISTRO_IDYes-Template for registration emails.
EMAILJS_TEMPLATE_OLVIDE_IDYes-Template for password reset emails.
EMAILJS_FROM_NAMENo-Optional “from” name for EmailJS.
Terminal window
npm install
npm run dev

To run in production:

Terminal window
npm start

CORS allows only the origin specified by FRONTEND_URL.