GithubHelp home page GithubHelp logo

winweb / spring-boot-vue Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.55 MB

Java 28.15% JavaScript 6.63% HTML 2.21% CSS 29.10% Vue 30.64% Dockerfile 2.40% Makefile 0.88%
spring-boot docker vue2 vue3 webflux r2dbc-h2

spring-boot-vue's Introduction

Simple CRUD with Vue.js and Spring Boot

This example app shows how to build a basic CRUD app with Spring Boot 2.5.x, Spring Data, and Vue.js 3.x.

Please read Build a Simple CRUD App with Spring Boot and Vue.js to see how this app was created.

Prerequisites: Java 8, Node.js, and Yarn.

Getting Started

To run the server, run:

./gradlew bootRun

Install yarn

npm install --global yarn

To run the client, cd into the client folder and run:

yarn install && yarn run serve

Deployment

To build client and server package for prepare deployment

Build Client

To build client, cd into the client folder and run:

yarn build

Will generate output at folder client/dist

Build Jar

To build an execute jar run:

gradlew build

Will create jar file at build/libs/todo-app.jar

Try

java -jar build/libs/todo-app.jar

Try for Stress Test

java -jar build/libs/todo-app.jar -server -Xms2G -Xmx2G -Xshareclasses -XX:+UseParNewGC -XX:CMSParallelRemarkEnabled -XX:+ParallelRefProcEnabled -XX:+CMSClassUnloadingEnabled -XX:CMSInitiatingOccupancyFraction=80 -XX:+UseCMSInitiatingOccupancyOnly -XX:TieredStopAtLevel=1 -noverify

=======

Docker

Build

docker build -f Dockerfile -t spring-boot-vue:latest .

Run

docker run --rm -p 9000:9000 spring-boot-vue:latest

Open

http://localhost:9000

Run Stress test on Windows 10

$  C:\xampp\apache\bin\ab.exe -k -p test.json -T application/json -n 1000000 http://localhost:9000/todos

References:

spring-boot-vue's People

Contributors

dependabot[bot] avatar junlapong avatar winweb 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.