ajaxssd
v1.0.1
Published
Full Stack Web Development lab practicals, exercises, and interactive installation CLI
Maintainers
Readme
AJAX SSD Practicals (ajaxssd)
Full Stack Web Development (FSWD) laboratory practicals, templates, and interactive command-line installation tool for students.
Overview
This package contains full-stack web development practical exercises ranging from foundational HTML5/CSS3/Bootstrap to dynamic DOM manipulation, jQuery AJAX, React components, and full-stack Node.js + Express + MongoDB CRUD applications.
It includes an interactive zero-dependency CLI that allows students to inspect and copy individual practicals or the entire suite into their current working directory.
Practicals Catalog
| Practical ID | Source File / Folder | Technology Stack | Description |
| :--- | :--- | :--- | :--- |
| 1-3 (or 1, 2, 3) | prog123.html | HTML5, CSS3, Bootstrap 5 | MCU Website portal, CSS Box Model demonstration, and Bootstrap responsive registration form. |
| 4-5 (or 4, 5) | prog45.html | Vanilla JS, DOM, FileReader API | Interactive student registration form with photo upload preview, profile card, and Show/Hide DOM controls. |
| 6 | prog6.html | jQuery 3.7.1, AJAX, FakeStore API | Asynchronous product catalog loader using jQuery AJAX and dynamic cards. |
| 7-8 (or 7, 8) | prog78.html | Vanilla JS, RegEx, Object Arrays | Form validation verifying mandatory fields, email, password, and 10-digit phone, plus dynamic student record card rendering. |
| 9-10 (or 9, 10, mcu-app) | mcu-app/ | React 19, Vite | Full Single Page Application demonstrating modular React components and props for student records. |
| 11-12 (or 11, 12, prog11-12) | prog11-12/ | Node.js, Express 5, MongoDB (MongoClient) | Full CRUD REST API with embedded web portal for student record management. |
Installation & Usage
1. Direct Execution via npx (No Install Required)
Students can run commands directly without installing anything permanently:
# List all available practicals
npx ajaxssd list
# Install a specific practical (e.g. Practical 6)
npx ajaxssd install 6
# Install multi-program files
npx ajaxssd install 1-3
npx ajaxssd install 4-5
npx ajaxssd install 7-8
# Install nested application projects
npx ajaxssd install mcu-app
npx ajaxssd install prog11-12
# Install ALL practicals at once
npx ajaxssd install allConvenience Shortcut: You can omit the
installkeyword:npx ajaxssd 6
2. Standard npm install (Project Dependency)
Install the package as a project dependency:
npm install ajaxssdImportant Note on
npm installvs CLI Installation: Runningnpm install ajaxssddownloads the package into your project'snode_modules/folder. It does NOT copy the practical files directly into your workspace root.To copy the actual practical files into your current working directory, run:
npx ajaxssd install <id>(Or use
npx fswd install <id>)
3. Global Installation
Install globally to make the commands available anywhere in your terminal:
npm install -g ajaxssd
# Now use directly:
ajaxssd list
ajaxssd install 6
ajaxssd install allCLI Options
| Flag | Description |
| :--- | :--- |
| list, ls | Display the practical catalog and available aliases. |
| install <id> | Extract and copy the specified practical into the destination directory. |
| -d, --dry-run | Preview which files would be created without writing any files to disk. |
| -f, --force | Overwrite existing files without confirmation prompts. |
| --dest <path> | Target directory to install into (defaults to current working directory). |
| -h, --help | Display usage and help manual. |
| -v, --version | Output package version. |
CLI Safety Features
- Overwrite Protection: If a destination file already exists, the CLI asks for confirmation before overwriting. If run non-interactively without
--force, existing files are safely skipped. - Path Traversal Guard: Destination paths are validated to prevent writing outside the intended target folder.
- Clean Copies: When copying nested applications (
mcu-appandprog11-12), localnode_modulesand cache artifacts are automatically excluded.
Running the Practicals
HTML/JS Practicals (1 through 8)
- Open
prog123.html,prog45.html,prog6.html, orprog78.htmldirectly in any web browser, or serve using VS Code Live Server.
Practical 9 & 10 (React + Vite)
cd mcu-app
npm install
npm run devOpen http://localhost:5173 in your browser.
Practical 11 & 12 (Express + MongoDB)
Ensure a MongoDB instance is running locally on port 27017:
cd prog11-12
npm install
node server.jsOpen http://localhost:3000 to interact with the API and student dashboard.
License
MIT © Sanjay R
