An inventory management website that supports the creation modification, and deletion of inventory as well as supporting multiple users. Application is built on top of Java Spark, React, and mySQL. Website and database are run separately in Docker Containers. The Docker Containers are run inside a Kubernets Cluster
Login Page | User Page |
---|---|
-
User Manipulation
- Get Specefic User Credentials:
GET www.kazhuu.com/username/[USERNAME]
- Get All Users Credentials:
GET www.kazhuu.com/username
- Delete User Account:
DELETE www.kazhuu.com/username/[USERNAME]
- Change User Password:
PUT www.kazhuu.com/username/[USERNAME]
- Form Data:
{ password:[NEW PASSWORD] }
- Create New User:
POST www.kazhuu.com/username
- Form Data:
{ username:[NEW USER USERNAME] password:[NEW USER PASSWORD] }
- Get Specefic User Credentials:
-
Inventory Manipulation
- Get All Inventory:
GET www.kazhuu.com/inventory/[USERNAME]
- Get Specefic Inventory:
GET www.kazhuu.com/inventory/[USERNAME]/[INVENTORY ID]
- Delete Specefic Inventory:
DELETE www.kazhuu.com/inventory/[USERNAME]/[INVENTORY ID]
- Update Specefic Inventory:
PUT www.kazhuu.com/inventory/[USERNAME]
- Form Data:
{ id:[INVENTORY ID] description:[INVENTORY DESCRIPTION] url:[INVENTORY URL IMAGE] }
- Add New Inventory:
POST www.kazhuu.com/inventory/[USERNAME]
- Form Data:
{ id:[INVENTORY ID] description:[INVENTORY DESCRIPTION] url:[INVENTORY URL IMAGE] }
- Get All Inventory:
-
Expected Response:
success:[true/false]
[true]: Operation Was Successful
[false]: Form Data is Malformed or Internal Server Failure
-
Install Docker
sudo apt install docker
-
Create Website Docker Image
docker build -t spring-boot-app:latest .
-
Create mySQL Docker Image
docker run -e MYSQL_ROOT_PASSWORD=password --network myNetwork --name=database -d -p 127.0.0.1:3306:3306 mysql:latest
-
Connect and Create Database Schema
mysql -uroot -ppassword -h 127.0.0.1 -P3306
-
Connect to the Website
http://localhost