Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying AngularJS Web Application Development Blueprints
  • Table Of Contents Toc
  • Feedback & Rating feedback
AngularJS Web Application Development Blueprints

AngularJS Web Application Development Blueprints

By : Vinci J Rufus
4.3 (7)
close
close
AngularJS Web Application Development Blueprints

AngularJS Web Application Development Blueprints

4.3 (7)
By: Vinci J Rufus

Overview of this book

If you are a web application developer interested in using AngularJS for a real-life project, then this book is for you. As a prerequisite, knowledge of JavaScript and HTML is expected, and a working knowledge of AngularJS is preferred.
Table of Contents (12 chapters)
close
close
11
Index

Integrating AngularJS with an ExpressJS project


Now that we have most of our server-side code working, we'll start working on our AngularJS code.

Let's download the angular-seed project as a ZIP download from https://github.com/areai51/angular-seed and extract the contents of the ZIP file.

Now, we will only take the content of the app folder along with the package.json and bower.json files and place it within the public folder of angcms.

In the terminal, navigate to the angcms/public folder and run the following two commands:

npm install
bower install

Note that we do not run npm start from within the public folder, as we will be using the Express server that runs at port 3000.

Your folder structure should look something like the following:

The next step is to define the routes in our ExpressJS app such that all routes are managed by AngularJS, except for those that start with a/api/.

For this, we will add the following catch-all route at the end of the angcms/routes/index.js file as follows:

router...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
AngularJS Web Application Development Blueprints
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon