/draw-smiley

Smiley drawing feed

Primary LanguageJavaScript

Smileys

Smiley drawing tool and feed.

Try it in smileys.top

Smileys

Development

git clone https://github.com/palampinen/draw-smiley.git
cd draw-smiley
npm install -g ionic@1.4.0
npm install

Firebase setup

Create Firebase account in https://firebase.google.com/

Create new Firebase project in https://console.firebase.google.com/

Go to Database in your new project and set rules to

{
  "rules": {
    ".read": true,
    ".write": true
  }
}

Go to Storage page and set rules to

service firebase.storage {
  match /b/{bucket}/o {
    match /{allPaths=**} {
      allow read, write;
    }
  }
}
cp www/config.example.js www/config.js

Fill www/config.js with your Firebase credentials that are found in Firebase Console > Project Overview > Add Firebase to your webapp

ionic serve

Firebase deploy

Install Firebase CLI https://github.com/firebase/firebase-tools

In your project root

firebase login
firebase init
  • Choose Database & Hosting
  • Configure as a single-page app Yes
  • Set www to public directory
  • overwrite index.html No
firebase deploy

App is now deployed to [your-app-name].firebaseapp.com

Tech

Licence

Licensed under the MIT license.