Creating a RESTful API (Express series 3)

So in the last post we went over the project structure. This time, we’ll actually modify some of the code to create our own RESTful web service.

If you don’t know what a RESTful web service is, you should check out the wikipedia entry for it.

As discussed in the previous post, all of our routes are defined in files located in the routes folder which are then referenced and collated in the app.js file. So, to create our own RESTful API, we need to do something in this area.

Lets checkout the index.js file and see whats in it. Continue reading

Understanding the default project structure (Express series 2)

Now that we have a basic express web app created, lets go through the project structure.

In the last post we briefly went through the purpose of package.json. Now its time to go through it in bit more detail. As the extension .json indicates, data in this file is in json format. Yours should look something like this: Continue reading

Thinking iteratively (Scrum series 2)

Most of us think linearly, that is step by step, from start to finish. Think about making something physical, like a wooden table. Your mind quickly starts creating steps leading to that goal. Something like this feels familiar?

  1. Buy lots of raw wood.
  2. Buy sandpaper.
  3. Buy varnish.
  4. Make four legs.
  5. Make table top.
  6. Apply sandpaper.
  7. Join it all up.
  8. Apply varnish.

Continue reading