Please enable JavaScript.
Coggle requires JavaScript to display documents.
Back-end Development - Coggle Diagram
Back-end Development
- Definition: Asynchronous, event-driven JavaScript runtime
-
-
- Download and install NodeJS
- Execute JS in command line
- Run JS files (
node filename.js)
- Definition of Back-end Development
- Difference between Client-side and Server-side
-
-
- Connect application parts (Client & Database)
- Languages and frameworks (NodeJS, Python, etc.)
- Definition: Lightweight, flexible NodeJS framework
- ExpressJS Installation (
npm install express)
-
- Create instance (
const app = express())
-
- Auto-restart server using
nodemon
- NodeJS Package Manager (NPM)
- Definition: Node-based package manager
- Initialize project (
npm init -y) → creates package.json
- Install packages (
npm install package-name)
- Install all packages (
npm install)
- Run scripts (
npm start, npm test, npm run script-name)
- JSON (JavaScript Object Notation)
- Definition: Lightweight data format
- Double quotes for keys and values
-
- Handling JSON in JavaScript
-
JSON.stringify() → convert data to JSON
-
JSON.parse() → convert JSON to data
- Avoid uploading Node_modules
- Set up
.gitignore and choose Node