Coder Social home page Coder Social logo

larasqrrl-mobile's Introduction

LaraSqrrl Mobile App

An example mobile app that goes along with LaraSqrrl, made for LaravelSF.

Getting Set up

Install ionic and cordova (you will need npm installed):

npm install -g ionic cordova

You'll also need to have the Android SDK installed. You can get the SDK and Android Studio (the Android IDE) from the Android SDK website.

Note: If you want to build for iOS, you will need to use a Mac and have Xcode installed.

Next you'll need to install the cordova plugins used by the app:

cordova plugin add cordova-plugin-device cordova-plugin-console cordova-plugin-whitelist cordova-plugin-splashscreen cordova-plugin-statusbar ionic-plugin-keyboard

Lastly, add the Android and iOS platforms:

ionic platform add ios
ionic platform add android

This adds the Android and iOS platforms to the ./app/platforms folder.

Development

Adding new Cordova plugins

If you'd like to add a new Cordova plugin, in the /app folder, run:

cordova plugin add pluginname

For example: cordova plugin add cordova-plugin-splashscreen.

Some common plugins are:

cordova-plugin-dialogs
cordova-plugin-splashscreen
cordova-plugin-statusbar
cordova-plugin-device

Running in the Browser

From the app folder, you can run the app in the browser using the command:

ionic serve

Building for Android and iOS

From the app folder, build for Android or iOS by running:

ionic build ios
ionic build android

Alternatively, you can use cordova to do this:

cordova build ios
cordova build android

Prepare Resources

To have ionic create the app icon and splash screen resources for different screen sizes/resolutions, run:

ionic resources

Running on attached Android device:

Ensure you have ADB (Android Debug Bridge) installed and in your $PATH. ADB is included with the Android SDK. Your attached Android device will need to have Developer mode and USB debugging enabled. Instructions for enabling this on your device can be fond here.

If you want to run on an attached device, first check that adb detects the device:

adb devices

Then run:

ionic run android

This builds and then installs the app on the attached Android device.

Running in iOS Simulator

If you're on a Mac and have Xcode installed, you can run the following to start your app in an iOS simulator:

ionic build ios
ionic emulate ios

Alternatively, after you build for iOS, you can open the project in Xcode and use Xcode to simulate the app or run on an attached iOS device. The Xcode project is located at ./app/platforms/ios/LaraSqrrl.xcodeproj.

Additional Reading

larasqrrl-mobile's People

Contributors

pauly4it avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.