Skip to content

hashini0123/ThogaKade-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ThogaKade — Backend API

A Spring Boot REST API backend for the ThogaKade retail shop management system.

🔗 Frontend: ThogaKade_Frontend


Tech Stack

  • Java 21 + Spring Boot 3
  • Spring Data JPA (Hibernate)
  • MySQL 8
  • Maven

Getting Started

1. Create the Database

CREATE DATABASE thogakade_db;

2. Configure application.properties

spring.datasource.url=jdbc:mysql://localhost:3306/thogakade_db
spring.datasource.username=root
spring.datasource.password=your_password

spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true

3. Run

./mvnw spring-boot:run

API runs at: http://localhost:8080


API Endpoints

Base URL: /api/v1

Method Endpoint Description
GET / POST /customers Get all / Add customer
GET / PUT / DELETE /customers/{id} Get, Update, Delete customer
GET / POST /items Get all / Add item
GET / PUT / DELETE /items/{code} Get, Update, Delete item
GET / POST /orders Get all / Place order
GET / DELETE /orders/{id} Get, Cancel order

CORS Setup

Requests from http://localhost:4200 (Angular dev server) are allowed by default.


Author

Hashini Nanayakkara — Undergraduate Software Engineering Student

LinkedIn GitHub

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages