Run your App

Your are now ready to run your client app.
Make sure that your localhost points to a secured public URL. The public URL must be the same with :

  • the one used in the environment.ts with a web socket endpoint
  • the one used as event base URL during the creation of the application

Run The Backend App

Install all the Maven dependencies and build your project with the following command, ran in the terminal:

  • mvn install - if you have Maven installed
  • mvnw install - otherwise

Start the events backend application with the following command, ran in the terminal:

  • mvn spring-boot:run - if you have Maven installed
  • mvnw spring-boot:run - otherwise

Run The Frontend App

Install all the npm dependencies and build your frontend project with the following command, ran in the terminal:

  • npm install

Start the events frontend application with the following command, ran in the terminal:

  • npm start

A webserver starts and listens on the port 4200. Navigate to http://localhost:4200 to see how the event notifications work.

This is how your event notifications display in the browser. Your server returns the time as a response, every 15 seconds.

Events App Browser