Skip to content

geninOne/boilerplate-Angular-NativeScript-Firebase

Repository files navigation

Boilerplate

dependencies Status MIT license

Dependencies

This project use following tools

The Structure of the angular and nativeScript you can follow the the description in this post

Prerequisites

  1. Install Node.js
  2. Install Angular CLI: npm i -g @angular/cli
  3. Install Angular CLI: npm install -g nativescript
  4. From project root folder install all the dependencies: npm i

Angular (Web)

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

NativeScript (Android, IOS)

Use the Playground

To use the NatvieScript Playground you must install the NativeScript App

Start NativeScript

Run npm run android or npm run ios

More Information

If you need more information about the nativescript cli look here

Firebase

To setup firebase in the app, you must edit the files in /src/enviroments

firebase: {
        apiKey: '<your-key>',
        authDomain: '<your-project-authdomain>',
        databaseURL: '<your-database-URL>',
        projectId: '<your-project-id>',
        storageBucket: '<your-storage-bucket>',
        messagingSenderId: '<your-messaging-sender-id>'
    }

to get the settings go to firebase => Settings => General => My Apps => click on Firebase add to my Web-App

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published