This is a cross-platform CMS for publishing rich text documents to mobile devices with real-time updates. Written for Operation Smile, documents are authored and published via a companion WYSIWYG web app to a Firebase database for real-time updates to this Ionic/Angular2/TypeScript app.
To deploy, this project needs credentials to a Firebase project. Create a ./src/assets/authenticate.ts
file. In the Firebase console for your project click "Add Firebase to your web app" and copy and paste the definition of the config
variable into authenticate.ts
to end up with something like:
export const firebaseConfig = {
apiKey: "...",
authDomain: "project-name.firebaseapp.com",
databaseURL: "https://project-name.firebaseio.com",
projectId: "project-name",
storageBucket: "project-name.appspot.com",
messagingSenderId: "..."
};
In the root project directory, run:
$ npm install
To install all project dependencies and populate the ./node_modules
subfolder.
Run:
$ ionic serve -l
To test the app in a browser window.
MIT