Skip to content

165-Softtech-Patika-Java-Spring/bitirmeprojesi-sinanoral

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Softtech & Patika Java Spring Bootcamp

Graduate Project

About The Project

  • 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.

Built With

Getting Started

Installation

  1. Clone the repo
    git clone https://github.com/165-Softtech-Patika-Java-Spring/bitirmeprojesi-sinanoral.git
  2. Install JDK-11 and switch to it.
  3. Import the project to your IDE.
  4. Create a new database named softtechgraduate on PostgreSQL.
  5. Get your ip address via cmd.
    ipconfig
  6. Go to project file structure and find the application.properties file under resources.
  7. You must edit local address section on application.properties file.
     spring.datasource.url=jdbc:postgresql://YOUR_IP:5432/softtechgraduate
    
  8. You must edit username and password sections on application.properties file.
  9. Run project and then database tables will be generated.
  10. After the tables generated, run this sql script.

And you are ready...

For docker

  1. Go to 'C:\Program Files\PostgreSQL\14\data' and add following line to end of the 'pg_hba.conf' file. postgre-path
    host    all             all             0.0.0.0/0            	md5
  2. Run the clean and install to create target files.
    mvn clean instal
    
  3. Run the following docker commands:
    docker build . -t softtech-graduation-project:1.0
    docker run -p 8080:8080 softtech-graduation-project:1.0
  4. Open the swagger ui on your browser. Default link -> http://localhost:8080/swagger-ui/index.html

Contributing

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.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

    OR

Create an issue

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Sinan ORAL: https://www.linkedin.com/in/sinanorl/

Project Link: https://github.com/165-Softtech-Patika-Java-Spring/bitirmeprojesi-sinanoral

About

bitirmeprojesi-sinanoral created by GitHub Classroom

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors