Skip to content

errier/vanad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maven

Run application

mvn spring-boot:run

Run tests

mvn test

May sometimes throw Exception:

"Database is already closed (to disable automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to the db URL)".

I don't know how to fix this: I already applied the proposed solution to the application.properties file.

Docker

Build Docker image

docker build -f Dockerfile -t vanad .

Run Spring boot application

docker run -tdi --name=vanad vanad mvn spring-boot:run # Run as daemon
docker logs -f vanad # See Spring application boot
docker stop vanad # Stop container
docker start vanad # Start container

Bash commands (using curl)

Create entity

./create.sh http://rest-host:port

e.g.

./create.sh http://node9.codenvy.io:56576

Get entity

./get.sh http://rest-host:port id-of-entity

e.g.

./get.sh http://node9.codenvy.io:56576 123

About

Vanad demo application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published