Skip to content

Cusatelli/Noroff-Assignment_6

Repository files navigation

Logo

Noroff Assignment 6

Data access and display
View Demo

Table of Contents

  1. About the Project
  2. Install
  3. Usage
  4. Build & Deploy
  5. Demo
  6. Swagger
  7. Maintainers
  8. Contributing
  9. Conventions
  10. License
  11. Contact

About the project

Data access with JDBC and Thymeleaf

Build a Spring Boot application in Java. Follow the guidelines given below, feel free to expand on the functionality. It must meet the minimum requirements prescribed.

NOTE: This assignment is to be completed in groups of 2.
In addition to this, you should complete this assignment using Pair Programming.
  1. Set up the development environment.

    Make sure you have installed at least the following tools:

    • IntelliJ with Java 17.
  2. Use plain Java to create a Spring Boot Web API, and use Thymeleaf to create a view with the following minimum requirements (See Appendix A-B for details):

    1. Access the Chinook SQL Lite database through JDBC. This should be done according to Appendix A.
    2. A Thymeleaf view to show database data according to Appendix B.
    3. This should all be in one project.
    4. The application must be published as a Docker container on Heroku.

Assignment 2_Java_Data access and display.pdf

(back to top)

Install

git clone https://github.com/Cusatelli/Noroff-Assignment_6.git
cd Noroff-Assignment_6

(back to top)

Usage

Open IntelliJ IDEA navigate to /src/main/java/com/access_and_expose/noroffassignment_6/Main.java
Rigth click & press 'Run Noroff-Assignment_6Application.java'

(back to top)

Build & Deploy

Navigate to cd Noroff-Assignment_6 & run the following commands to build & deploy the application:

Build

./gradlew build
docker build --build-arg JAR_FILE=build/libs/\*.jar -t springio/gs-spring-boot-docker .

Deploy

heroku login
heroku container:login

heroku create

heroku container:push web
heroku container:release web

(back to top)

Demo

Heroku App: https://whispering-meadow-32702.herokuapp.com/

(back to top)

Swagger

Swagger: https://whispering-meadow-32702.herokuapp.com/swagger-ui/index.html

Maintainers

@Cusatelli
@Haruberi

(back to top)

Contributing

@Cusatelli
@Haruberi

(back to top)

Conventions

Format: <type>(<scope>): <subject>

<scope> is optional

  • feat: (new feature for the user, not a new feature for build script)
  • fix: (bug fix for the user, not a fix to a build script)
  • docs: (changes to the documentation)
  • style: (formatting, missing semi colons, etc; no production code change)
  • refactor: (refactoring production code, eg. renaming a variable)
  • test: (adding missing tests, refactoring tests; no production code change)
  • chore: (updating grunt tasks etc; no production code change)

Read more: Conventional Commits v1.0.0

(back to top)

License

No active license.

(back to top)

Contact

Cusatelli: github.cusatelli@gmail.com
Haruberi: github.com/Haruberi

(back to top)