- openjdk version 17+
- Installed Docker
- Optional: Installed IntelliJ IDEA
Clone Backend project via: git clone https://github.com/monkey-tw/BookServer.git
The application is running in AWS.The public IP is http://3.26.48.2 .
eg: You can access book list page via: http://3.26.48.2:8080/books
- Open terminal and run:
cd BookServer
- run
./build_and_run.sh
. (The build_and_run.sh script will detect if Docker is installed or not. If Docker is installed, it will rundocker run
to start the application. If Docker is not installed, it will runjava -jar book-server-0.0.1-SNAPSHOT.jar
to start the application.) - Run:
chmod +x ./build_and_run.sh
if you get permission denied error
- In case there is any error when run
build_and_run.sh
, you can try this. - Open BookServer project via IntelliJ IDEA
- Click
Run
button in the top menu, then clickRun 'BookServerApplication'
- Based on Spring MVC
- Based on H2 database.
- Unit tests with JUnit
Refer to BookApp to run BookApp in simulator.