Now that we have a better understanding of client-side security and its drawbacks, let's put it into practice by developing an app with the following features:
There is a public home screen that can be seen by everybody who uses the app
There is a private part that shows some personal information about a user, which is only accessible to authenticated users
There is logic for the authentication of users through a simple log-in form
There is logic for the authorization and authentication of users to access the otherwise private parts of the application
Let's start with the configuration of our basic project structure. If you have read the book until this point, this should be second nature to you by now! Go to a desired project directory, and from there, just run the following from your terminal or command line:
ionic start secureApp
This will create a basic, blank Ionic app. Let's add some basic structure to it. The first thing that we want to do is add two basic...