A platform of web services that forms a Bed and Breakfast booking system. The platforms primary purpose is for training others on how to explore and test web service platforms as well as strategise and implement automation in testing strategies.
RBP is currently known to work with the following requirements:
- JDK 15.0.2 or higher (Tested with JDK 18)
- Maven 3.6.3
- Node 16.15.1
- NPM 8.11.0
Assuming you have the above requirements in place, to get started open a terminal/command line window and follow these instructions:
- Clone/Download the repository
- Navigate into the restful-booker-platform root folder
- Run either
bash build_locally.sh
for Linux or Mac orbuild_locally.cmd
on Windows to build RBP and get it running (It may take a while on the first run as it downloads dependencies) - Navigate to http://localhost:8080 to access the site
Assuming you have successfully built the application at least once, you can now run the app without having to rebuild the whole application.
- To run without end-to-end checks run:
run_locally.sh
- To run with end-to-end checks run:
run_locally.sh -e true
- To run without end-to-end checks run:
run_locally.cmd
- To run with end-to-end checks run:
run_locally.cmd true
The user login details are:
- Username: admin
- Password: password
The details on running checks, building APIs and additional details on documentation for development can be found in READMEs inside each of the API folders.
The build process for this project is managed by CircleCI which is all managed by the config.yml file in the .circleci folder. To get setup you will need to:
Follow these steps to get a CI setup running the tests
- Fork this repository so that you have your own copy
- If you haven't already, create a CircleCI login using your GitHub details. This will connect CircleCI to your GitHub profile.
- Head to the Projects page in CircleCI, locate the RBP repository and click setup project.
- Go through the steps to for setting up the project, ensuring that it loads in the config.yml from the project (Click use existing config)
If you would like to setup CircleCI to run a full deployment, please drop an issue into the repository.