Skip to content

Instantly share code, notes, and snippets.

View sweets-11's full-sized avatar

Aniket sweets-11

View GitHub Profile

Interview Questions

Node.js

Q1: What do you mean by Asynchronous API? ☆☆

Answer: All APIs of Node.js library are aynchronous that is non-blocking. It essentially means a Node.js based server never waits for a API to return data. Server moves to next API after calling it and a notification mechanism of Events of Node.js helps server to get response from the previous API call.

Source: tutorialspoint.com

The below are all the commands you need to run -- make sure to replace the IP with your own.
before deploying:
make sure environment variables are correct (.env vs .env.local)
npm build script (if you use prisma)
"build": "prisma db push && next build"
ssh [email protected]
apt install npm
npm install -g n
n latest