
If you never built a server this will help to understand the concept of it and why it is useful and almost always necessary
Your very first server, here it goes!
GET requests and passing data in the URL params
To get a better idea how clients, like webpages or mobile apps, interact with a server we will make a brief detour to full-stack development here
It is not that scary as it sounds, what is CORS and how to work with it to make our server accept requests from our frontend
With Postman tool we can easily create any type of HTTP request and test our server while we develop it
Same as in plain JavaScript, your server controllers should only return once
Let's add more functionality to our server to practice and strengthen what we've learned so far
Using different appropriate types of HTTP requests for different kinds of operations we run, putting data to an external file, using environmental variables in the .env file, adding irrelevant files and folders into .gitignore file – all of this is not only best practices but also a huge help for you to organise your servers in a better way!
Different types of actions ask for different types of HTTP requests, let's find out about difference between POST and GET requests
Let's put this POST requests to work and see how we can use them
More types of requests for replacing or deleting the data
A cherry on top – add the status codes to your server's responses
We can create a public folder in the server and keep any static content there, like PDFs, images, etc. and make it available for our client
Understanding better the routing system of the server
What is it?
Adding mongoose to your server, creating schemas/models and connecting your server to the DB. Also we will start using the MVC pattern!
Deleting data from the DB, updating it, using several collections inside a DB
Organizing data in the collections helps to have a better structure, referencing across collections helps to link data which belongs to different collection
Setting up and connecting to Mongo Atlas so that your DB runs in the cloud
Describing API to help you plan the server you are building is always a great idea! It will also serve as a blueprint for the frontend developers to know how to communicate with your server.
If you already know JavaScript and want to master backend development, this course is designed for you. We will start from the very basics – understanding what a server actually is – and gradually move toward building more powerful backend connected to databases and organized with professional standards.
You will not only learn the concepts but also get plenty of hands-on practice. By the end, you’ll be able to set up a server from scratch, design routes for all request types, handle data securely, and connect everything to mongoDB – both locally and in the cloud with Mongo Atlas.
Here’s what we will cover step by step:
– Understanding the server conceptually
– Initializing and running a server with nodemon
– Using GET requests and passing data in params and queries
– Understanding how frontend and backend communicate (including CORS)
– Checking and testing endpoints with Postman
– Organizing routes, controllers, and responses
– Using POST, PUT, DELETE requests and sending data in the body
– Status codes and serving static content
– MongoDB and Mongoose fundamentals, connecting the server to the database
– Building with the MVC pattern, refactoring routes and controllers
– Creating, deleting, and updating documents in the database, including multiple collections and relationships with populate()
– Working with Mongo Atlas for cloud databases
– Writing clearl API descriptions and using industry tools
With these solid foundations, you will gain the skills and confidence to create and scale your own backend applications. No fluff, no unnecessary theory – just a practical, step-by-step path understand the backend development with JavaScript.