This repository contains the backend service for Foodies, a full-stack online food ordering platform. The backend is built using Java and Spring Boot and provides secure REST APIs for authentication, cart management, and order processing.
- User & Admin authentication using JWT
- Role-based access control (RBAC)
- Secure REST APIs with Spring Security
- Cart and order management
- Admin APIs for menu & order handling
- Global exception handling & validation
- Clean layered architecture
- Java 17
- Spring Boot
- Spring Security + JWT
- Spring Data JPA
- MongoDB
- Maven
- REST APIs
controller/ → REST endpoints
service/ → Business logic
repository/ → Database access layer
model/ → Entities
security/ → JWT config & filters
exception/ → Global error handling
-
Clone the repository
git clone https://github.com/ayushcode12/Foodies_Backend.git -
Configure database in application.properties
-
Run the application
mvn spring-boot:run -
Server starts at
http://localhost:8080
- Login returns JWT token
- Token is sent in Authorization header
- Access is controlled based on role (USER / ADMIN)
- Secure REST API development
- JWT authentication & authorization
- Backend architecture design
- Database modeling
- Error handling and validation
- Building production-like systems
Ayush Jain
Java Backend / Full Stack Developer
GitHub: https://github.com/ayushcode12