Skip to main content

Posts

Showing posts from November, 2021

How to install Nginx Proxy Manager on proxmox 8.3.2 container

MikroTik Lab Configuration on VMware Workstation | Windows 10 | Zonat Solutions

Mikrotik Key Features : PPPoE, IP Addressing, DNS, DHCP, Firewall and More | Zonat Solutions

MikroTik Basic configuration step by step | Zonat Solutions

How to Install Mikrotik on PC x86 / Server or VM | MikroTik Series | Zonat Solutions

How to structure the Back-end Node JS Application

Organizing the file structure of the application is one of the major tasks in development. If the application is well structured, it is easy to read and maintain. let's explore the folder structure and the files of the folder contained within them Config Config folder contains the configuration of your server and the database connections. It contains methods to connect with the DB and set up the database. e.g.       try { const conn = await mongoose . connect ( mongoDb . Database . host , { useNewUrlParsers : true , useCreateIndex : true , useFindAndModify : false , useUnifiedTopology : true , } ) ; console . log ( "connection to db established" , conn . connection . host ) ; } This try method will try to connect to a MongoDB instance along with the defined parameters. Constants As the name suggests, this folder contains all the constants of the node application, e.g. Database name, hosting address, and other global consts. Controllers ...