Skip to content
Discussion options

You must be logged in to vote

To integrate MongoDB:
1. Install dependencies: npm install mongoose.
2. Update src/server/index.js to connect to MongoDB:
javascript<br>const mongoose = require('mongoose');<br>mongoose.connect('mongodb://localhost/orbitos');<br>
3. Create a file schema in src/server/db/.
4. Update /api/files routes to use MongoDB.
5. Test with npm run server.
6. Document in DEPLOYMENT.md and submit a pull request.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dailker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed question Further information is requested
2 participants