In this tutorial I’m going to show you how to create a “Conference” app using AngularJS, a little bit of Node, and Cosmic JS. You will be able to add speakers and sponsors, editing content and managing members of this conference in an admin panel. Let’s get started.
Download the GitHub repo.Check out the demo.
First, let’s make a new directory to build our project in and lets also make a package.json file.
Now, in your package.json, here’s how we’ll do it in code:
mkdir conference-appconference-app$ touch package.json
Second, let’s make a bower.json file.
conference-app$ touch bower.json
We will build this feature for our bower.json:
Config app server:
conference-app$ touch app-server.js
Now we’re going to build out our file structure a bit more so that we can organize our angular modules and js files. This is what our conference-app directory should look like:
Now we we will set up our index.html:
Here, we are going to target our “root” view to place our angular modules in later. The main.js file located in our dist directory is what our gulpfile.js file will spit out after bundling all of our angular modules.
Now, set up our gulpfile.js. We will build this feature for our app:
After that we can create main module. Here’s how we’ll do it in code of main.mdl.js file:
Now we we will set up our Auth Controller. Here’s how we’ll do it in code of auth.ctrl.js file:
We will build Auth Service for our app:
This is the abbreviated version of this article. To follow the full tutorial, go to How to Build a Conference App Using AngularJS on the Cosmic JS website.
We were able to to create a conference website using AngularJS, connected to the Cosmic JS CMS API. Content can be managed directly in the admin area of the website or via the Cosmic JS Dashboard. I hope you enjoyed this tutorial as much as I did, if you have any questions reach out to us on Twitter and join our community on Slack.