Skip to content

The Unite Framework is a slim framework for Ionic 2 which provides a lot of convenience for implementing common stuff like lists, push notifications and menus.

Notifications You must be signed in to change notification settings

tekdi/unite-framework

Repository files navigation

Unite Framework (v2)

Prerequisite

  • Node, NPM, loopback-v3 (nodejs framework), pm2 (process manager for Node.js) and MongoDB should be installed on the system.

Setup on localhost

  1. Clone - Clone this repo
  2. Install server dependencies - change directory to the server folder and run npm install command. This will install all the server dependencies.
  3. Verify MongoDB is active - MongoDB is by default not started every time the system is restarted / booted. Verify MongoDB server is active / running with command service mongod status. If not active, start the MongoDB with command sudo service mongod start.
  4. Import temporary data - Instructions
  5. Start loopback server - run command node . to start the server on local machine. To start loopback in background run command pm2 start server/server.js. To verify server is running, run command pm2 list, it should show server online.
  6. Once the server is active, one can access http://localhost:3002/explorer URL to add application data (Such as Menu, Widget, WidgetAssignment, Source) using post service from loopback. refer Database Design Diagram for more clarification on relationship between the collections.
  7. Install Angular dependencies - Next, change directory to the web folder and run npm install command to install the Angular dependencies.
  8. Start Angular application - run command ng serve --open and check running application on http://localhost:4200.

Unite Documentation Link

Database Design Diagram

unite database design

Misc

Import dummy data to start with

  • Open terminal in directory (unite-framework/temp-data/sunbird) and execute the following commands.
sudo mongoimport --db umongodb --collection Menu --file menu.json
sudo mongoimport --db umongodb --collection Widget --file widget.json
sudo mongoimport --db umongodb --collection Source --file source.json
sudo mongoimport --db umongodb --collection WidgetAssignment --file widgetassignment.json
sudo mongoimport --db umongodb --collection Route --file route.json
  • Above commands will import the collections Menu, Widget, Source, WidgetAssignment and Route inside the umongodb database, which can be verified with the Compass explorer.

About

The Unite Framework is a slim framework for Ionic 2 which provides a lot of convenience for implementing common stuff like lists, push notifications and menus.

Resources

Stars

Watchers

Forks

Packages

No packages published