Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
WEB APP TESTING USING KNOCKOUT.JS

You're reading from   WEB APP TESTING USING KNOCKOUT.JS Design, implement, and maintain a fully tested JavaScript web application using Knockout.JS

Arrow left icon
Product type Paperback
Published in Nov 2014
Publisher
ISBN-13 9781783982844
Length 154 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
ROBERTO MESSORA ROBERTO MESSORA
Author Profile Icon ROBERTO MESSORA
ROBERTO MESSORA
Arrow right icon
View More author details
Toc

The solution structure


A good solution structure is very important to organize the code base and development process correctly. In this chapter, I will use Jetbrains Webstorm, one of the most known JavaScript IDE (http://www.jetbrains.com/webstorm/).

Generally speaking, the solution structure depends directly upon the adopted technology; usually, a web application is not a pure JavaScript client solution, but it's built in a specific server technology environment, such as PHP, Ruby, ASP.NET, and JSP.

However, we can define a typical folder organization that is always valid for the JavaScript codebase because it lives quite independently from the server-side counterpart.

We can set up the following folders:

  • The project's root folder: This is the main project folder. It contains all the HTML page files.

  • styles: This folder contains all the CSS files, fonts, and similar resources (LESS, SASS, and so on).

  • scripts: This folder contains all the JavaScript code and tests' files:

    • libs: This folder contains...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £16.99/month. Cancel anytime