- A new user can be created, updated and deleted.
- A new product can be created, updated and deleted.
- Products price can be updated.
- When one of the categories vat rate updated, price of the products of the category also will update.
- All products can be listed.
- All products can be listed by their category.
- All products Products in a certain price range can be listed.
- You can find detailed information about the rules of the project here.
- Clone the repo
git clone https://github.com/165-Softtech-Patika-Java-Spring/bitirmeprojesi-sinanoral.git
- Install JDK-11 and switch to it.
- Import the project to your IDE.
- Create a new database named softtechgraduate on PostgreSQL.
- Get your ip address via cmd.
ipconfig
- Go to project file structure and find the application.properties file under resources.
- You must edit local address section on application.properties file.
spring.datasource.url=jdbc:postgresql://YOUR_IP:5432/softtechgraduate - You must edit username and password sections on application.properties file.
- Run project and then database tables will be generated.
- After the tables generated, run this sql script.
- Go to 'C:\Program Files\PostgreSQL\14\data' and add following line to end of the 'pg_hba.conf' file.
host all all 0.0.0.0/0 md5
- Run the clean and install to create target files.
mvn clean instal - Run the following docker commands:
docker build . -t softtech-graduation-project:1.0docker run -p 8080:8080 softtech-graduation-project:1.0
- Open the swagger ui on your browser. Default link -> http://localhost:8080/swagger-ui/index.html
Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Sinan ORAL: https://www.linkedin.com/in/sinanorl/
Project Link: https://github.com/165-Softtech-Patika-Java-Spring/bitirmeprojesi-sinanoral