Skip to content
social app for sending people signals
JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
functions
hooks
.firebaserc
.gitignore
.nvmrc
README.md
database.import.json
database.rules.json
firebase.json
firebase.nativescript.json
package-lock.json
package.json
showcase.gif

README.md

This project was a try to create a nice looking NativeScript with firebase as a backend. (only tested with android)

I used the great nativescript-plugin-firebase plugin and the app uses firebase storage, realtime database, authentication and cloud functions.

In order to run this app. Create a firebase project at the firebase console. Follow the steps to include firebase to Android and download and place the google-services.json into app/App_Resources/Android. Next Activate storage, anonymous authentication and the realtime database in the firebase console. Import the rules for the database from the file database.rules.json. Provide the database with data from the database.import.json.

I used node version v6.11.3 for nativescript. If you have nvm run nvm use.

To build the app make sure you have NativeScript installed and a connected Phone and execute

tns run android

from the root directory of the project.

The app uses push notifications (fcm) and firebase functions to relay these to the phone. To install the firebase tools and deploy the function run the following commands.

npm install -g firebase-tools
firebase login
cd $root_of_project
firebase init (choose to NOT overwrite files from the functions directory)
firebase deploy --only functions

You may have to go to

https://console.developers.google.com/apis/library/fcm.googleapis.com/?project=$YOUR_PROJECT_ID

and enable the FCM api. (I got that link from the functions log output)

You can’t perform that action at this time.