Advertisement
satishfrontenddev5

Untitled

Feb 18th, 2024
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. What is backend.
  2. What is difference between mongodb and SQL.
  3. React router methods.
  4. How you will implement the login function.
  5. What is database.
  6. What is mongodb.
  7. What is ApI and different rest methods we use?
  8.  
  9. 1. **What is backend?**
  10.    - The backend refers to the server-side of web development where data processing, logic, and database interactions occur.
  11.  
  12. 2. **Difference between MongoDB and SQL?**
  13.    - MongoDB is a NoSQL database that stores data in JSON-like documents, while SQL databases (such as MySQL, PostgreSQL) store data in structured tables with rows and columns. MongoDB is schema-less, allowing flexible data models, whereas SQL databases have a fixed schema.
  14.  
  15. 3. **React Router methods?**
  16.    - React Router provides methods like `BrowserRouter` for web applications, `HashRouter` for hash-based routing, `Route` for defining routes, `Link` for navigation, and `Switch` for rendering the first matching route.
  17.  
  18. 4. **How will you implement the login function?**
  19.    - Implementing a login function involves creating a login form with input fields for username and password, handling form submission, sending a POST request to the server with user credentials, verifying credentials on the server, and setting up authentication mechanisms like JWT or sessions.
  20.  
  21. 5. **What is a database?**
  22.    - A database is an organized collection of structured data stored electronically in a computer system. It allows data to be easily accessed, manipulated, and managed.
  23.  
  24. 6. **What is MongoDB?**
  25.    - MongoDB is a NoSQL database management system that uses a document-oriented database model. It stores data in flexible, JSON-like documents with dynamic schemas, making it easy to manage and scale.
  26.  
  27. 7. **What is API and different REST methods we use?**
  28.    - An API (Application Programming Interface) is a set of rules and protocols that allows different software applications to communicate with each other. REST (Representational State Transfer) is an architectural style for designing networked applications. Common REST methods include GET (retrieve data), POST (create data), PUT (update data), DELETE (remove data), and PATCH (partially update data).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement