Giter Site home page Giter Site logo

vaadin-project's Introduction

Vaadin Project

Taking Vaadin for a little spin. Created a Vaadin download from their start page https://start.vaadin.com/?preset=lts

  • Selected Template Master-Detail
  • Selected Type Java Only

Requirements

  • Java 11+
  • Maven 3.5+
  • Docker Desktop

Using

Development

Run PostgreSQL in Docker

> docker run --rm \ 
--name postgresql \
-e POSTGRESQL_USERNAME=vaadin \
-e POSTGRESQL_PASSWORD=vaadin \
-e POSTGRESQL_DATABASE=vaadin \
-p 5432:5432 \
bitnami/postgresql:latest

Run application

Note! It will take a while if it is your first run. A lot of files will be downloaded.

> mvn spring-boot:run

Open http://localhost:8080

Production

  • Build Web image (Docker)
  • Run Compose (or do it you own way)

Build Web image

Vaadin has a production profile we will use with maven.
We use Spring Boot Plugin to build Docker image

> mvn -Pproduction spring-boot:build-image

Docker Compose

Command docker-compose will start up both database and webapplication. \
Run from root directory or use docker-compose -y <docker-compose.yml>

To start application run

> docker-compose up

To shutdown application run

> docker-compose down

Open http://localhost:8080

vaadin-project's People

Contributors

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