Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sean-bradley/seans-reactjs-java-spring-hibernate-mysql-boilerplate
A Dockerised ReactJS Java Spring Hibernate Mysql Boilerplate
https://github.com/sean-bradley/seans-reactjs-java-spring-hibernate-mysql-boilerplate
babel chai docker enzyme hibernate java mocha mysql nginx protractor reactjs reactjs-boilerplate rest spring-boot webpack
Last synced: 1 day ago
JSON representation
A Dockerised ReactJS Java Spring Hibernate Mysql Boilerplate
- Host: GitHub
- URL: https://github.com/sean-bradley/seans-reactjs-java-spring-hibernate-mysql-boilerplate
- Owner: Sean-Bradley
- License: isc
- Created: 2018-07-20T14:36:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-21T11:33:36.000Z (12 months ago)
- Last Synced: 2024-05-02T02:14:08.026Z (7 months ago)
- Topics: babel, chai, docker, enzyme, hibernate, java, mocha, mysql, nginx, protractor, reactjs, reactjs-boilerplate, rest, spring-boot, webpack
- Language: JavaScript
- Homepage:
- Size: 4.12 MB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Seans ReactJS Java Spring Hibernate MySQL Boilerplate
*Comes Dockerised and with Unit Testing*
## To Start
`docker-compose up -d`
then visit
`https://localhost:8443/`
## Note about docker toolbox on windows 10
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![Screenshot](homeScreenshot.png)
## The running project consists of
* 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## Mocha, Chai and Enzyme tests
`cd react`
`npm test`
## Protractor e2e tests
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`
![protractor screenshot](protractorScreenshot.png)