This guide walks you from a fresh clone to a running server with a verified API response.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/praveenarya123/sps-backend/llms.txt
Use this file to discover all available pages before exploring further.
Check prerequisites
You need the following installed before you begin:
- Node.js v18 or later — nodejs.org
- MongoDB running locally on the default port (
27017), or a MongoDB Atlas connection string
Configure environment variables
Create a Then open
.env file in the project root:.env and set the following values:.env
| Variable | Description |
|---|---|
PORT | Port the Express server listens on |
MONGODB_URI | MongoDB connection string — local or Atlas |
JWT_SECRET | Secret key used to sign and verify JWT tokens. Use a long random string in production. |
Register your first user
Make your first authenticated API call by registering a user:The server responds with the created user object:
The
password field in the response is the bcrypt hash — never the plaintext value.What’s next
Authentication
Understand JWT tokens, roles, and how to authenticate every request.
API reference
Explore all available endpoints with request and response schemas.