taioo / myApp

this is a full-stack application with spring services and Ui5 Clint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

myApp

Setup

to define and start containers

docker-compose up -d

check containers status

docker container ls

Stops containers and removes containers created by up

docker-compose down --volumes


Mysql

access mysql container (myapp_mysql) in docker

docker exec -it myapp_mysql mysql -u user -p

Login user

  • username: user
  • Password: password

OR

Login root

  • username: root
  • Password: root

mysql:

  • 0.0.0.0:8081
  • 127.0.0.1:8081

phpmyAdmin:



Spring

navigate to Spring folder

cd Spring

install & run

mvn install && mvn spring-boot:run

Admin user

  • username: user
  • Password: password

REST:

  • This gets all data GET localhost:8080/user/all
  • This adds one user to the data POST localhost:8080/user/add

create user:

$ ❯ curl -i --user user:password http://localhost:8080/user/add -d name=John -d email=email@email.com -d password=password -d role=admin

The reply should be: Saved

$ curl -i --user user:password http://localhost:8080/user/all

The reply should be: [{"id":5,"name":"John","username":"email@email.com","password":"password","enabled":true,"lastLogin":null,"role":"admin"}]

Swagger

http://localhost:8080/swagger-ui.html


OpenUi5 // todo

file directory:

cd openui5

Install all dependencies

yarn

Start a local server and run the application (http://localhost:8080/index.html)

ui5 serve -o index.html

more info

https://github.com/SAP/openui5-sample-app

About

this is a full-stack application with spring services and Ui5 Clint


Languages

Language:JavaScript 81.0%Language:CSS 15.4%Language:Java 2.7%Language:HTML 0.9%