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.
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'
});
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 using one of the community channels
- GitHub: Baasic
- Google Groups: Baasic Support
- Twitter: @baasical