Learn how to create a complete backend with our NodeJS mini-course! Create your Web API from scratch and configure your backend server with JavaScript.
Throughout this mini-course, you will see everything from the most theoretical concepts of JavaScript to the practical ones, so that you can master what an API is, a Web API, the Node package manager and much more.
All this so that, in the end, you can have your complete JavaScript backend for your website or application.
How to use JavaScript in any company and any area, with examples fully applied to the reality of the Job Market, whether to become a Front End, Backend, Full Stack or Mobile Developer.
Start now
Right arrow
JavaScript icon used as backgroundThree images of JavaScript course classes
NodeJS Minicourse – Lesson 1 – Create a Backend with JavaScript
Let's start our NodeJS mini-course to develop a backend system with JavaScript!
If you prefer this content in video lesson format, watch the video below or access our YouTube channel !
To receive the file(s) used in the class by email, fill in :
Your best email
To send
In the first class of our NodeJS mini-course, I want to present cryptocurrency data some very important theoretical concepts that you need to learn to better understand the project that we will develop.
This will be a slightly more theoretical class, where we will cover objects in JavaScript, variables, API, Web API, Node packages, Type module and much more.
With this class, you will have all the basis to understand our mini-course and, at the end, you will be able to create a backend with JavaScript capable of providing information for your website or application.
Preparations for the Mini Course
Before we start our NodeJS Mini Course, it is important that you have VS Code and NodeJS installed on your computer.
For this, I have separated two complete classes so that you can see the step-by-step process of how to download, install and configure VS Code and NodeJS:
How to install NodeJS
How to install VS Code
Initial VS Code Setup
With VS Code installed, let's create a folder on our computer where we will build and save our codes. In my case, I will create a folder called minicurso-nodejs-brasileirao2024 .
Then we can open VS Code , go to File , Open Folder and select the folder we just created.
Initial VS Code Setup
API, Web API and Internet Communication
Throughout this project, we will work with fundamental concepts for the development of an efficient backend system : API , Web API and Internet Communication .
As we go through each of them, I will explain them to you better, but if you want to understand them in detail, we have, for each one, a class explaining these topics:
What are APIs and Web APIs
Internet Communication
This is because our system will be a Web API that will deliver information to us according to the requests we make to it.
Initial Project Structure
To start our project, let's create our first JavaScript file within VS Code. Just click on the New File option and create a file called table.js .
Creating js file
An interesting point when working with Node.js is that JavaScript systems can be divided into several JS files , providing better organization and maintenance of the codes.
Variables in JavaScript
Variables in JavaScript are like boxes that store data. This data can be of different types, and we can manipulate it by doing calculations, comparisons, updates, and so on.
We can identify this variable from a name, which we will use to call it whenever necessary.
Inside the file we just created, we will define a variable called time , which will receive a text data type. Whenever we declare a text in JavaScript, it needs to be between double or single quotes .
NodeJS Minicourse – Backend with JavaScript
-
- Posts: 93
- Joined: Sun Dec 15, 2024 5:00 am