This repository is a collection of my JavaScript practice exercises and a full Express.js + MongoDB project.
- String functions: Reverse, Palindrome, Vowel Count, Capitalize
- Array operations: Filter, Map
- ES6 Functions: Arrow Functions
- π RESTful APIs using Express
- π Middleware (Logger & Authentication)
- ποΈ MongoDB Atlas database connection
- π‘ API Endpoints with CRUD operations
- β Tested with Postman
- 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.
- Built a Node.js + Express.js server.
- Created routes for
GET,POST, andDELETE. - 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.
- Connected MongoDB Atlas cloud database with Mongoose.
- Designed a User Schema with:
userNameuserIdrole (Admin / Member / Guest)
- Practiced CRUD operations with real data.
- 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" }
- Clone the repository
git clone https://github.com/Karmugilan-vk/fullstack-practice.git cd fullstack-practice/express-practice