Comes Dockerised and with Unit Testing
docker-compose up -d
then visit
https://localhost:8443/
If you use docker toolbox on windows 10 home, the site will be published at ip 192.168.99.100.
- You should open the VBox manager,
- Click the default machine used by docker
- Right click and choose Settings
- Network > Adapter 1 > Advanced > Port Forwarding
- Click "+" to add a new Rule
- Set Host IP to 127.0.0.1, Host Port 8443
- Guest IP to 192.168.99.100 and Guest Port 8443
- Nginx Proxy hosting the compiled ReactJS App
- Nginx Proxy redirecting /api calls to the Java Spring API
- Java Spring-Boot JPA Hibernate Rest API running in TomCat
- MySQL database
cd react
npm test
There is also the option to do e2e testing with protractor and jasmine. Before you start, you need to install protractor
cd react
npm install -g protractor
then, update the web driver
npm run update-webdriver
Now you can run
npm run protractor