Skip to content

This is a side-by-side comparison of REST API implementations using: ✅ Java (Spring Boot) ✅ JavaScript (Node.js + Express.js)

Notifications You must be signed in to change notification settings

saurabhbahadur/RESTful-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 

Repository files navigation

🚀 RESTful API Playground

(Built with Java Spring Boot & Express.js)


📘 What is a RESTful API?

A RESTful API (Representational State Transfer) is an architecture style for designing scalable web services.
It performs operations on resources using standard HTTP methods like GET, POST, PUT, and DELETE.


🔧 Supported API Operations

Method Function
GET Fetch existing data
POST Create new resource
PUT Update existing resource
DELETE Remove existing resource

💡 Project Overview

This is a side-by-side comparison of REST API implementations using:

  • ✅ Java (Spring Boot)
  • ✅ JavaScript (Node.js + Express.js)

Each stack includes:

  • 👤 User Controller

    • POST /register – Register new user
    • POST /login – Login with JWT
  • 📝 Blog Controller

    • POST /create – Create blog post
    • PUT /edit/:id – Edit blog (only if owner)
    • DELETE /delete/:id – Delete blog (only if owner)

All routes are secured with JWT authentication and ownership checks.


⚙️ Tech Comparison

Feature Spring Boot Express.js
Language Java JavaScript (Node.js)
Framework Spring Boot Express.js
Auth Spring Security + JWT Custom Middleware + JWT
DB Integration JPA (Hibernate) Mongoose (MongoDB)
Run Command ./mvnw spring-boot:run nodemon server.js

🎯 Ideal For

  • Developers comparing Java vs JS for APIs
  • Students practicing RESTful backend design
  • Anyone building secure, CRUD-based backend apps

🌐 Connect with Me


⭐ Give it a Star if You Found This Useful!

About

This is a side-by-side comparison of REST API implementations using: ✅ Java (Spring Boot) ✅ JavaScript (Node.js + Express.js)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published