This project use following tools
- Node.js (10.14.0)
- Angular CLI (7.1.2)
- Angular (7.1.0)
- AngularMaterial (7.1.1)
- NativeScript
- Firebase
- Angularfire 2
The Structure of the angular and nativeScript you can follow the the description in this post
- Install Node.js
- Install Angular CLI: npm i -g @angular/cli
- Install Angular CLI: npm install -g nativescript
- From project root folder install all the dependencies: npm i
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.
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
.
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.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
To use the NatvieScript Playground you must install the NativeScript App
Run npm run android
or npm run ios
If you need more information about the nativescript cli look here
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