Inserting images in the application using the upload form

Now it's time to test the application, noting that for this you should start your MongoDB. Otherwise the application will return a failure error while connecting:

  1. Open your terminal/shell at the root project folder and type the following command:
    npm start
    
  2. Go to http://localhost:3000/signup and enter the following data:
    • name: John
    • email: john@doe.com
    • password: 123

  3. Go to http://localhost:3000/images-gallery, click on the Image Upload button, fill in the form with a title and choose an image (note that we set up the image size limit to MB just for example purposes). You will see a model form, as the following screenshot shows:

    Image upload form

  4. After choosing the image, click on the Save Changes ...

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.