Backend for the JSON Versioning App using Node.js, Express, and MongoDB.
- Node.js (LTS)
- Express.js
- MongoDB (with Mongoose)
- dotenv, cors
- Install dependencies:
npm install
- Create a
.env
file in the root with your MongoDB URI:MONGODB_URI=mongodb://localhost:27017/json_versioning PORT=5000
- Start the server:
npm run dev
src/
controllers/
models/
routes/
services/
middlewares/
utils/
config/
app.js
server.js
See frontend /json-versioning/src/services/api.ts
for endpoint documentation.