
Build a hello world backend with Node.js, Express, and MongoDB by creating a simple API endpoint at /, running on port 3000, and enabling live reload with npm run dev.
Master JSON for backend communication, install and use Postman to test a simple API on localhost:3000, and send and view JSON messages and version data.
Build and test a set of api routes for a superhero rest api using get, post, put, and delete requests. Use request.params.superheroId to fetch, edit, or delete specific heroes.
Sign in to MongoDB Atlas, create a free cluster, configure credentials and network access, install the MongoDB package, and connect with a db URI to verify the database connection.
Define a hero mongoose model with superhero name and real name, export it, and implement create, read, update, and delete operations using async/await in a Node.js API.
In this series we will build backend API using NodeJS & MongoDB. We will also learn how to create routes using express and full CRUD API with it.
- Introduction to Nodejs, Express & MongoDB and hello world project using Nodejs
- Getting started with JSON, postman
- API routes
- connecting mongodb atlas with our project
- database model creation & heros CRUD
Node.js is a cross-platform, open-source server environment that can run on Windows, Linux, Unix, macOS, and more. Node.js is a back-end JavaScript runtime environment, runs on the V8 JavaScript Engine, and executes JavaScript code outside a web browser.
MongoDB is a source-available cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with optional schemas. MongoDB is developed by MongoDB Inc. and licensed under the Server Side Public License (SSPL) which is deemed non-free by several distributions.
An (API) is a way for two or more computer programs to communicate with each other. It is a type of software interface, offering a service to other pieces of software. A document or standard that describes how to build or use such a connection or interface is called an API specification. A computer system that meets this standard is said to implement or expose an API. The term API may refer either to the specification or to the implementation.