

localhost:3000/quizes -> for getting list of all quizes, creating a quiz, Removing all quizes.There are four different REST api's for performing various operations The database schema for the above problem statement is located at models/quizes.js fileĢ. Integration test file: test/ quiz app with admin privileges working on node js and mongodb Problem StatementĬreate a quiz app for an educational institute where they can do following.Īdmin should be able to create quiz with various instructions regarding the quiz, questions, answers, explanations and duration for theĪt any point of time admin can enable or disable the quiz itself.Īt any point of time admin can enable or disable any question.Īt any point of time admin can add, remove or edit the question for an existing quiz.Īpart from the admin rest of the users can only see the quiz and questions.The integration request depends on a real database connection, either locally or remotely. Open a web browser and use the following url to view the web app on your local computer.
Node js visual studio code mongodb install#
Install the sample's dependencies: npm install


The Node.js app consists of the following elements: The tutorial includes creating a CosmosDB resource for the Mongo API, getting the connection information and setting that in the app service configuration setting to connect to a cloud database.
Node js visual studio code mongodb how to#
The tutorial demonstrates how to load and run the project locally with VSCode, using extensions, was well as how to run the code remotely on an App service. The programming work is done for you, this tutorial focuses on using the local and remote Azure environments successfully from inside Visual Studio Code with Azure extensions. The user adds data ( 2 text fields), can view data, and delete a single row or all rows. The sample code is a JavaScript server written with Express.js and the native MongoDB API.

Express.js website, with SSR React, connecting to a MongoDB.
