3-Year BCA Degree Practical Structure: A 3-year degree has 6 Semesters. Each semester has 60 practical lab days (15 weeks ร 4 lab classes/week). 6 Semesters ร 60 Days = 360 Total Practical Coding Days across your entire 3-year degree.
Sem 1 PracticalActive
0 / 60 Days
3-Yr Total: 0 / 360 Labs
Sem 1 Sprints
0% done
Sprint 1 (Days 1โ30)
GitHub Repos
0 verified
Portfolio Pushes
Active Day
Day 1
Current Target
Semester 1 Practical Progress (Days 1โ60)0 of 60 Days (0%)
Next Up: Day 1: HTML Setup & First WebpageContinue
๐ป
Computer Competency Test (CBT)100 MCQs
Windows OS โข Linux โข MS Office โข Networking โข Git โข Web Tech
Not Attempted Yet
Test your technical fundamentals with our standard 90-minute Computer-Based Assessment. Submitting your test will automatically certify and link your official score to this student profile!
Your local Express server is ready! Now we must deploy it to the cloud so that users around the world can access your API.
In this final phase lesson, we will secure our configurations using environment variables, handle cross-origin constraints, and deploy our server.
Nextsem Academy
Lesson: p5-4-deployment
Slide 1 / 6
P5.4: Backend Deployment
Your local Express server is ready! Now we must deploy it to the cloud so that users around the world can access your API.
In this final phase lesson, we will secure our configurations using environment variables, handle cross-origin constraints, and deploy our server.
Slide 2 / 6
1. Environment Variables (.env)
You must never commit secret credentials (like database passwords, API keys) directly into your git repository. Instead, store them in a local .env file and read them using dotenv.
By default, web browsers block frontend code (e.g. running on http://localhost:3000) from requesting resources from a backend API running on a different domain (e.g. http://localhost:5000). This is a security constraint called CORS.
To allow your frontend to query your backend API, install and configure the cors middleware:
>_Command Prompt
โโโ
npm install cors
Interactive Console
Example
const express = require('express');
const cors = require('cors');
const app = express();
// Enable CORS for all incoming requests
app.use(cors());
// Or limit to your frontend domain:
app.use(cors({
origin: 'https://nextsem.online'
}));
Interactive Code
Slide 4 / 6
3. Deployment Platforms
You can host Express backend APIs on several popular cloud hosting platforms: