GithubHelp home page GithubHelp logo

taioo / myapp Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 16.79 MB

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

Java 2.73% HTML 0.90% JavaScript 80.99% CSS 15.39%
spring-boot springsecurity crud docker-compose mysql-database ui5 java javascript rest-api

myapp's Introduction

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 protected] -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 protected]","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

myapp's People

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.