Skip to content

simpulton/bba-ionic-quickstart

Repository files navigation

Ionic Quickstart

This is the sample project for the Ionic Quickstart course from BrieBug Academy.

The sample project includes an Ionic application, Angular web application, and a mock RESTful API within an Nx workspace by NRWL. The Ionic and Angular applications use the same state and data libs to manage state and handle server communication. The state lib is built around NgRx and both appliations are entirely reactive.

Ionic Quickstart

Prerequisites

Web: Getting Started

git clone https://github.com/briebug/bba-ionic-quickstart.git
cd bba-ionic-quickstart
npm i
npm run serve:all

The serve:all command is a convenience methods that runs three other commands concurrently. You can run each command separately if you need to.

"serve:web": "ng serve --open",
"serve:mobile": "ionic serve --project=mobile",
"serve:api": "json-server server/db.json",
"serve:all": "concurrently \"npm run serve:api\" \"npm run serve:web\" \"npm run serve:mobile\""

The web application will open to http://localhost:4200 in your browser.

The mobile application will open to http://localhost:8100 in your browser.

You can see the API by navigating to http://localhost:3000 in your browser.

Note: the above terminal commands are for Mac. Remember to substitute the appropriate commands for your OS.

Mobile: Getting Started

Running Ionic applications in a browser is a great place to start but ultimately they are meant to run on mobile devices. This is a bit more involved and so the first place to start is with the Ionic documentation developing for iOS and Android. These articles will guide you through setting up your local environment.

Once you have set up Xcode and/or Android Studio, you can run these commands.

nx build --project=mobile
npx cap add ios
npx cap open ios
npx cap add android
npx cap open android

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published