Ionic 4 Auth CLI
Starting point for Ionic 4 Application with Authentication build in. Go to Ionic 4 User Registration & Login Tutorial to see more info and screen shots.
If your Ionic 4 application needs authentication, you have came on right page. If you are starting a completely new project, then you can just clone this and start working on it. This will save your couple of hours for sure.
In this Project I’m using side menu template of Ionic 4. If you already have a project then you can go to Ionic Auth and copy only files.
If you want to install the project local, you can using following command.
git clone https://github.com/flicher-net/ionic-4-auth-cli.git
CD into project
Install Node Modules
npm install --unsafe-perm=true --allow-root
If you are using mac, you might get ENFILE: file table overflow errors, you can use these commands to solve it.
echo kern.maxfiles=65536 | sudo tee -a /etc/sysctl.conf echo kern.maxfilesperproc=65536 | sudo tee -a /etc/sysctl.conf sudo sysctl -w kern.maxfiles=65536 sudo sysctl -w kern.maxfilesperproc=65536 ulimit -n 65536 65536
If you are going to be using a backend to store user details. Then go to src/app/services/env.service.ts file and give value to API_URL.
API_URL = 'https://blog.flicher.net/api-url';