Giter Site home page Giter Site logo

ryanzhang / todo-demo-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from redhat-mw-demos/todo-demo-app

0.0 1.0 1.0 1.78 MB

Showcase how to create a Todo list where the different tasks are created, read, updated, or deleted from the database.

License: Apache License 2.0

Java 59.45% JavaScript 24.20% HTML 16.35%

todo-demo-app's Introduction

TODO Application with Quarkus

This is an example application based on a Todo list where the different tasks are created, read, updated, or deleted from the database. Default this application for convenience purposes uses an in-memory database called H2 that allows you to run this application without depending on an external database being available. However, the H2 database is not supported to run in native mode, so before you do the native compilation, you will have to switch to the postgresql branch.

Branches:

  • master - use H2 (in memory), no native support
  • postgresql - use posgresql, support native mode

Compile and run on a JVM

mvn package
java -jar target/todo-backend-1.0-SNAPSHOT-runner.jar

Then, open: http://localhost:8080/

Development mode

mvn quarkus:dev

Then, open: http://localhost:8080/

Compile to Native and run with PostgresSQL ( in a container )

Compile:

git checkout --track origin/postgresql
mvn clean package -Pnative

Run:

docker run --ulimit memlock=-1:-1 -it --rm=true --memory-swappiness=0 \
    --name postgres-quarkus-rest-http-crud \
    -e POSTGRES_USER=restcrud \
    -e POSTGRES_PASSWORD=restcrud \
    -e POSTGRES_DB=rest-crud \
    -p 5432:5432 postgres:10.5
target/todo-backend-*-runner

Other links

todo-demo-app's People

Contributors

cescoffier avatar ryanzhang avatar phillip-kruger avatar sshaaf avatar bartoszmajsak avatar gsmet avatar hillmerch avatar jarrydk avatar rbaumgar avatar tqvarnst avatar danieloh30 avatar

Watchers

James Cloos 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.