Exif Data Analysis 02: Initial steps
One: Set-up the gitHub repository, and here it is: ExifDataAnalysisÂ
Two: Â Clone the repository and start installing the needed technologies. Most of the package managers and languages I needed were already installed previously. I used: homebrew and nvm to install npm and node.
Three: Creating the dependencies file, also known as package.json. This was initiated using the basic:
npm init.
This is where I encountered a first issue: npm init wasn’t recognised as a command in the project folder. To get this fixed:
I checked node version, which was the correct one: 0.10.30
To unblock npm (that was actually installed) I run the command: nvm install 0.10.30 which responded with: v0.10.30 is already installed.
This actually corrected the error and I could run the command and create the package.json. (a weird little bug)
Four: Installing the node framework. I chose express as it’s what we’re using on our work system. But I did have a cheeky look at: Restify, Hapi;
I learned a small fact: running an npm install, such as the one fro express: npm install express and ending this with a –save would guarantee the express (or any other api/technologies used) being added as a dependency in the package.json. Neat!