Skip to content

Baasic/baasic-demo-angularjs-membership-blog

Repository files navigation

Baasic AngularJS Membership Module Demo

Functionality

This demo will be focused on user registration, account activation and login functionality by using Baasic AngularJS SDK. More information about the Demo can be found in the series of blog posts here.

Build the demo

As a client-side prerequisite, you should install the basic tools for your operating system: Node.js, Bower and Gulp. Start by cloning the AngularJS membership blog repository. After that, go into the root folder of the started kit you just cloned and type:

npm install

npm (Node Package Manager) will go through its configuration file (package.json) and install all dependencies. It may take a couple of minutes to download and install everything.

When npm finish installation, you need to download Bower components as well. In order to that, just type the following:

bower install

when Bower downloads project dependencies, you can run Gulp tasks via:

gulp serve

In its default state, this kit points to the main demo site and pulls its content from it. As it would not be a nice thing to have thousands of users editing it, you will need to point your kit to your own application. It is easy - just go to the \src\app\app.js and enter your Baasic application unique identifier (API Key) here:

baasicAppProvider.create('your-unique-identifier', {
        apiRootUrl: 'api.baasic.com',
        apiVersion: 'beta'
    }); 

Production ready build

To make the app ready for deploy to production run:

gulp dist

Now there's a ./dist folder with all scripts and stylesheets concatenated and minified, also third party libraries installed with bower will be concatenated and minified into vendors.min.js and vendors.min.css respectively.

Get in touch

Get in touch using one of the community channels