Skip to content

A collection of JavaScript, Express.js, and MongoDB practice exercises covering core concepts such as functions, arrow functions, array operations, REST API basics, and role-based access control.

Notifications You must be signed in to change notification settings

Karmugilan-vk/fullstack-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

33 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Fullstack Practice πŸš€

This repository is a collection of my JavaScript practice exercises and a full Express.js + MongoDB project.


βš™οΈ Features

πŸ”Ή JavaScript Practice

  • String functions: Reverse, Palindrome, Vowel Count, Capitalize
  • Array operations: Filter, Map
  • ES6 Functions: Arrow Functions

πŸ”Ή Express + MongoDB Practice

  • 🌐 RESTful APIs using Express
  • πŸ”‘ Middleware (Logger & Authentication)
  • πŸ—„οΈ MongoDB Atlas database connection
  • πŸ“‘ API Endpoints with CRUD operations
  • βœ… Tested with Postman

πŸ“š What I Learned

πŸ”Ή JavaScript Basics & Practice

  • Wrote functions for:
    • Reverse String
    • Palindrome Check
    • Vowel Count
    • Longest Word in a String
    • Capitalize Words
  • Practiced Array Operations like:
    • map()
    • filter()
  • Used ES6 Arrow Functions to simplify code.

πŸ”Ή Express.js & Middleware

  • Built a Node.js + Express.js server.
  • Created routes for GET, POST, and DELETE.
  • Added a Logger Middleware to track requests with timestamps.
  • Learned to use Controllers for cleaner code separation.
  • Implemented Role-Based Access Control (RBAC):
    • Admin β†’ can create, read, and delete users.
    • Member β†’ can create and read users.
    • Guest β†’ can only read.

πŸ”Ή MongoDB Atlas

  • Connected MongoDB Atlas cloud database with Mongoose.
  • Designed a User Schema with:
    • userName
    • userId
    • role (Admin / Member / Guest)
  • Practiced CRUD operations with real data.

πŸ”Ή Postman API Testing

  • Tested all routes with Postman:
    • GET /user/:name
    • POST /user
    • DELETE /user/:id (Admin only)
  • Sent JSON data in POST requests:
    {
      "userName": "Mugilan",
      "userId": "001",
      "role": "Member"
    }
    

πŸ”§ Installation & Setup

  1. Clone the repository
    git clone https://github.com/Karmugilan-vk/fullstack-practice.git
    cd fullstack-practice/express-practice
    
    

About

A collection of JavaScript, Express.js, and MongoDB practice exercises covering core concepts such as functions, arrow functions, array operations, REST API basics, and role-based access control.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published