Running the application

Now it's time to execute the application and upload some photos:

  1. Open your terminal/shell and type the following command:
          npm start
    
  2. Go to http://localhost:3000/books and you will see the following screen:

    Running the application

    Books screen

Uploading and showing images

Now let's insert some images and check the behavior of our application:

  1. Go to http://localhost:3000/books/add, and fill in the form:

    Uploading and showing images

    Upload form

    Add the following information:

    Title: Image Sample 02

    File: choose the sample02.jpg file.

    Category: cities

    Description: Lorem ipsum dolor sit ...

Get Node.js 6.x Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.