Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pradeepsingroul/dmartready
This is Baaic atock management system where user can purchase a stock and he/she can see the stock movement as well as stock location
https://github.com/pradeepsingroul/dmartready
github github-config hibernate java maven mysql-database postman spring-boot sql swegger
Last synced: 14 days ago
JSON representation
This is Baaic atock management system where user can purchase a stock and he/she can see the stock movement as well as stock location
- Host: GitHub
- URL: https://github.com/pradeepsingroul/dmartready
- Owner: pradeepsingroul
- Created: 2023-07-15T12:14:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-16T13:01:38.000Z (over 1 year ago)
- Last Synced: 2024-11-06T23:46:44.083Z (2 months ago)
- Topics: github, github-config, hibernate, java, maven, mysql-database, postman, spring-boot, sql, swegger
- Language: Java
- Homepage:
- Size: 98.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dmartready
This is Baaic atock management system where user can purchase a stock and he/she can see the stock movement as well as stock location
## ER Diagram
![Stocks](https://github.com/pradeepsingroul/Dmartready/assets/104360276/0f0a3d1b-0fd5-4fe6-acde-6a9ba9dcafde)## Features
### Stock.
![Screenshot (139)](https://github.com/pradeepsingroul/Dmartready/assets/104360276/8d5e7f04-dc48-401c-b921-f335a6febbec)
get all stocks
```getall
GetMethod-
http://localhost:8080/stocks
```
get stock whose quantity is greater than passed quantity
```greaterThanQuantity
GetMethod-
http://localhost:8080/stocks/greater?quantity=yourQuantity
```
Add new stock items to the system.
```add
PostMethod-
http://localhost:8080/stocks/add
```
Update the quantity of existing stock items.
```update
GetMethod-
http://localhost:8080/stocks/update?id=2yourItemID&quantity=Quantity
```
Delete stock items from the system.
```delete
GetMethod-
http://localhost:8080/stocks/delete?id=id
```### store location
![Screenshot (141)](https://github.com/pradeepsingroul/Dmartready/assets/104360276/d1830946-b615-42c9-971f-27f636866511)
get all the locations
```getall
GetMethod-
http://localhost:8080/storeLocations
```
add new locations
```add
PostMethod-
http://localhost:8080/storeLocations
```
get location by name
```getByName
GetMethod-
http://localhost:8080/storeLocations/getByName?name=yourLocation
```
get location by aaddress
```getByAddress
GetMethod-
http://localhost:8080/storeLocations/getByAddress?address=yourAddress
```### stock movement
get all stock movement
add new stock movement## Tech Stack
- Core Java
- Spring Boot
- Spring Security
- MySQL (RDBMS)
- Sql
- Maven
- Swagger UI
- postman
- Giuhub## Deployment
To deploy this project on localhost paste this below code in application.properties file in the
resources and update according to your database name, username and password of your MySQL database.```properties
#changing the server port
server.port=8080#db specific properties
spring.datasource.url=jdbc:mysql://localhost:3306/database
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.username=username
spring.datasource.password=password#ORM s/w specific properties
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=truespring.mvc.throw-exception-if-no-handler-found=true
spring.web.resources.add-mappings=falsespring.mvc.pathmatch.matching-strategy = ANT_PATH_MATCHER
```
### Swagger UI - Link
http://localhost:8080/swagger-ui/index.html
Use this link to run it on browser.