Notes Deploy
Notes Deploy
o The frontend is what users see and interact with, such as web pages
and mobile app screens.
o The backend is the server-side of an application, handling data
processing, storage, and business logic.
o Think of it as a restaurant: the frontend is the dining area, where guests
interact with the menu and waiters, and the backend is the kitchen,
where food is prepared based on the orders.
• Application Servers:
o Handle application logic and dynamic content, often interacting with
databases.
oCan work alongside web servers to deliver a full application
experience.
o Examples include Tomcat and Node.js (if used as a standalone server).
• Example Scenario:
o For a simple website, a web server like Nginx might be sufficient to
serve static files.
o For a more complex web application, both a web server (like Nginx)
and an application server (like Node.js) may work together, with the
web server forwarding requests to the application server.
• Databases:
o Store data used by the backend. Common databases include SQL-based
ones like MySQL, PostgreSQL and NoSQL databases like MongoDB.
• Client-Server Communication:
o Communication typically happens via HTTP requests: GET (retrieve
data), POST (create data), PUT (update data), and DELETE (remove
data).
o Example: A frontend application might use a GET request to retrieve
user data from the backend.
• Why Deployment?
o Enables users to access the application over the internet or an internal
network.
o Allows for scalability, so the app can handle many users or requests
simultaneously.
• Installing Node.js:
o Step-by-Step:
▪ Download Node.js from https://nodejs.org/.
▪ Follow installation instructions and verify by running node -v
and npm -v in your terminal.
• Branching Basics:
o Create a new branch:
bash
Copy code
git branch feature-branch
git checkout feature-branch
o Push branch changes with git push origin feature-branch.