Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Michel Joanisse
Michel Joanisse
14,860 Points

Building a front-end driven RESTful application

Hey everyone,

I've been tasked to build a lightweight, decoupled, front-end driven RESTful application. I'm looking for some direction on what that means, where to start, and what resources I can refer to for furthering my understand around this concept.

I've learned through various resources (much of them advocated in these courses) that you should always build your app in a progressively enhancing way, not only because it's good practice, but also because the application needs to meet accessible standards. So, naturally, the app should work without JavaScript.

So, usually my build cycle looks something like this:

  1. Build a server-side script driven adaptation of app
  2. Factor in the richer, more optimal, and user enhancing JavaScript features used to elevate the user experience

Now, if we are building a front-end driven application, what happens to accessibility? How can we share or bookmark URI's? How do search engines index pages? Surely, this is possible as these front-end driven application patterns / methods seem more and more common nowadays.

2 Answers

Yeah

Steven Parker
Steven Parker
231,007 Points

I would not assume "So, naturally, the app should work without JavaScript." is true.

In fact, JavaScript is the only language universally available at the "front end" (browser). You do have a number of server-side choices, though, including JavaScript.

Perhaps some of the following courses may be useful: