/express-beers

A new tutorial in the Beer Tutorials series

Primary LanguageJavaScript

Express-Beers

A server-side companion to the Angular Beers, Polymer Beers and Vue Beers projects

The Angular Beers project is a small Angular tutorial that can be used on its own. [Vue Beers](Polymer Beers and Polymer Beers are similar projects showcasing VueJS and Polymer.

But IMHO it is a pity to do only the client-side and mocking the server API with plain files. So here we have a companion project where we are going to do the server-side of angular-beers using ExpressJS, tiny Sinatra inspired framework for creating web applications in NodeJS with minimal effort.

What are the objectives of this tutorial

Follow this tutorial to learn to build APIs in JavaScript quickly an easily, without all the pain of the classic way. You will use the ExpressJS framework, with some drops of NoSQL databases (with MongoDB, work in progress).

How is the tutorial organized

As many computers used for the course haven't Git, we have structurated the project to allow a Git-less use. The src directory is the sources directory of the project, the working version of the code. The tutorial is divided in steps, each one in its own directory:

  1. Hello world
  2. Basic routing
  3. JSON beers
  4. Serving the webapp
  5. Mongo beers

In each step directory you have a README file that explain the objective of the step, that you will do in the working directory app. If you have problems or if you get lost, you also have the solution of each step in the step directories.