Install node and npm
We are using Cloudinary to save images. You can do transformations on the fly on upload or later when displaying images. You can create a free Cloudinary account here : https://cloudinary.com/console/settings/account
- npm install cloudinary --save
You can use a database like MongoDB with Mongoose (for modeling) to provide a backend for your Node.js application.
- brew install mongodb. We are using mongo to store the image URL and later display the images in a grid. You might need to change the permissions once insntalled To start mongo : $mongod More details here: https://www.w3schools.com/nodejs/nodejs_mongodb.asp
Express.js basically helps you manage everything, from routes, to handling requests and views. It is like a web framework. Here is a link to the Express guide : https://expressjs.com/en/3x/api.html
- npm install express --save Express.js is what django is to Python.
Formidable is a Node.js module for parsing form data, including multipart/form-data file upload.
- npm install formidable --save
EJS is a simple templating language that lets you generate HTML markup with plain JavaScript. More info: http://ejs.co/
- npm install ejs --save