DelghtReading is a web-based application that manages reading logs.
It consists of three components:
- DelightReading-server - Java/Spring based RESTful service. Implements all back-end business logic.
- DelightReading-client-web - Single page applicaiton for authenticated access.
- DelightReading-server-ui - Nodejs based application for public access pages as well as hosting the client-web.
- DelightReading-gateway - Gateway
- Buil the server
cd delightreading-server
mvn package
- build the client-web
cd delightreading-client-web
npm build build; npm build dist
- build the UI server
cd delightreading-server-ui
npm build build
mvn -f ./delightreading-gateway/pom.xml spring-boot:run
mvn -f ./delightreading-server/pom.xml spring-boot:run
cd delightreading-server-ui;node dist/server.js
This runs the web-client in dev mode, meaning that the changes to the code are reflected immediately. The caveat is that the web browser needs to be run with security disabled for cookies to be stored.
The gateway is not necessary in this mode as the browser can access the SPA page directly to the webpack-dev-server.
mvn -f ./delightreading-server/pom.xml spring-boot:run
cd delightreading-server-ui;npm start