Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

wheesko/PSKProject

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

371 Commits
371 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PSKProject

PSK komandinis projektas

Requirements

  • Node.JS
  • JDK 11
  • ESlint

Setup

Start frontend (skip npm install if not first time):

cd src/main/psk-ui
npm install
npm start

Start backend:

mvnw spring-boot:run

Now if you click the button, you should see api calls being made to backend

Install ESlint:

  • Go to preferences, ESLint plugin page and check the Enable plugin.
  • Set the path to the nodejs interpreter bin file.
  • Set eslintr.c path to psk-ui/.eslintrc.json
  • Set the path to the eslint bin file. should point to node_modules/eslint/bin/eslint.js if you installed locally or /usr/local/bin/eslint if you installed globally.
    • For Windows: install eslint globally and point to the eslint cmd file like, e.g. C:\Users<username>\AppData\Roaming\npm\eslint.cmd
  • You can also set a path to a custom rules directory.

Connecting to DB

After you've launched the application, you should be able to open h2 database via url

http://localhost:8080/h2-console

In this window your JDBC URL field should look like the one in the field spring.datasource.url

src/main/resources/application.properties

Once you connect, you should be able to see entity tables

You can test out the api calls via postman, PUT and GET methods should be working properly.

Swagger UI

You can access swagger UI and see implemented endpoints at

localhost:8080/swagger-ui.html

Click authorize and insert JWT in format (get it from postman or frontend)

Bearer <YOUR_JWT_VALUE>

You should now be able to call them, provided your JWT was correct and not expired

Working with database

Database tables are auto-generated using hibernate.ddl-auto. On the initial project launch, make sure it is set to create in application.properties. On further launches, change this setting to update

Using the application

Application starts with sample data, you can use login "admin" with password "admin" to start using the application.

About

PSK komandinis projektas

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.