Step 3. Build and run the projects
In this step you build and run the API backend, and the "Todo" client app project.
-
Open a terminal window at the root directory of the SDK samples repo, and then run the following command to start both the API backend server and the "Todo" client:
npm run start:angular-todo
-
In a different browser than the one you are using to administer the server, visit the following URL:
https://localhost:8443
.The app renders a home page explaining the purpose of the project:
Figure 1. The home page of the sample app.Only the home page renders successfully. The login page functionality is not yet functional. You will develop this functionality later in this tutorial.
Troubleshooting
If the home page doesn’t render due to errors, here are a few tips:
-
Visit
http://localhost:9443/healthcheck
in the same browser you use for the Angular app; ensure it responds with "OK". -
Ensure your
hosts
file has the correct aliases. -
Look for error output in the terminal that is running the
start
command. -
Ensure you are not logged into the server within the same browser as the sample app; logout if you are and use a different browser.