Skip to content

dev048patel/Node.js

Repository files navigation

📦 Node.js Projects by Dev Patel

One‑line summary: A compilation of Node.js projects demonstrating various backend concepts and API implementations.


About

This repository showcases various backend projects and experiments built using Node.js. Each folder represents a separate learning module or project, from building basic servers to developing complete RESTful APIs.


Technologies Used

  • Node.js
  • Express.js
  • File System Module (fs)
  • HTTP Module
  • EventEmitter
  • JSON & AJAX
  • MongoDB (if used)
  • Environment variables (.env)
  • Middleware
  • Error Handling

Installation

  1. Clone the repository: git clone https://github.com/dev048patel/Node.js.git cd Node.js

  2. Install dependencies: npm install

  3. Configure environment variables (if applicable): cp .env.example .env

    edit .env with your values

  4. Run the project (example): node server.js

    or for specific projects:

    npm run dev


Usage

  • Explore individual folders for specific projects.
  • Each folder contains its own README.md or index.js entry point.
  • Example: GET /api/users – fetch users (in Express REST API)

Use Postman or browser to test local endpoints.


Project Structure (Example)

Node.js/ ├── cryptoDemo.js # Demo: Node.js crypto module ├── eventsDemo.js # Demo: EventEmitter usage ├── fsDemo.js # Demo: File System operations ├── index.js # Main entry or aggregator file ├── osDemo.js # Demo: OS module ├── pathDemo.js # Demo: Path module ├── postController.js # Custom controller logic for handling POST requests ├── processDemo.js # Demo: Process and environment variables ├── server.js # Server setup using built-in HTTP module ├── server2.js # Alternate or extended server implementation ├── urlDemo.js # Demo: URL module ├── utils.js # Utility/helper functions ├── package.json # Project metadata and dependencies ├── package-lock.json # Exact versions of installed dependencies ├── test.txt # Sample test file for fs module ├── test2.txt # Another sample file │ ├── public/ # Static HTML pages │ ├── index.html # Homepage │ └── about.html # About page


Learning Highlights

  • Built modular APIs using Express routing
  • Created custom servers with http.createServer()
  • Used native modules: fs, path, os, and events
  • Implemented file reading/writing and JSON parsing
  • Learned about middleware, request handling, and response formatting
  • Practiced modularizing code and reusability
  • Used environment variables and configuration files
  • Error handling and logging strategies

Contributing

  1. Fork this repository
  2. Create your feature branch (git checkout -b feature-name)
  3. Commit your changes (git commit -m 'Add feature')
  4. Push to the branch (git push origin feature-name)
  5. Open a pull request

License

Licensed under the MIT License.


Contact

Dev Patel
GitHub: https://github.com/dev048patel
Email: [email protected]


✅ Future Plans

🚧 Upcoming Project: AI Finance Platform (Full Stack MERN App) 🔥 Stack: Next.js, Tailwind CSS, Shadcn UI, Node.js, Prisma, MongoDB 🤖 AI Integration: Gemini AI for financial insights and automation 🔐 Authentication with JWT and secure session management 🧪 Add full testing and CI/CD pipeline 🚀 Deployment: Vercel for frontend, Render for backend Stay tuned as I transition from foundational Node.js skills to full-stack application development!

About

Basic practise on Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published