Skip to content
Starting point for Ionic 4 Application with Authentication build in.
Branch: master
Clone or download
Latest commit 5ae480c Feb 8, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
e2e Intial Commit Jan 26, 2019
resources Intial Commit Jan 26, 2019
src Intial Commit Jan 26, 2019
.gitignore Intial Commit Jan 26, 2019
angular.json Intial Commit Jan 26, 2019
config.xml Intial Commit Jan 26, 2019
ionic.config.json Intial Commit Jan 26, 2019
package-lock.json update read me file Feb 3, 2019
package.json update read me file Feb 3, 2019
readme.md update read me Feb 8, 2019
tsconfig.json Intial Commit Jan 26, 2019
tslint.json Intial Commit Jan 26, 2019

readme.md

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.

Getting Started

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.

Prerequisites

Ionic Framework Docs

Node

Installing

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

cd ionic-4-auth-cli/

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    

Configure

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.

For example:

API_URL = 'https://blog.flicher.net/api-url';

Deployment

iOS Setup

Andriod Setup

Built With

Ionic Framework

Follow me on Twitter

Twitter

You can’t perform that action at this time.