Few steps for creating a simple HTML + NodeJS/Express + Multer upload file example.
If you need help, call me: Twitter, Medium
- SublimeText or other file editor
- NPM
- Node JS
- Express, node network app framework
- Multer, middleware for handling multipart/form-data
Fist, install NPM for Node.JS managing packages. ( Just make sure, this is a Ubuntu example )
sudo apt-get install npm
Then, install Node.js
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
Download the project, and inside the folder, just run for dependences installation
$ npm install
In app.js file, I configurated the http PORT to 3000, you can change as you wanted, so, in this example, when start this example, it will be released in localhost:3000 address :)
So, open your favorite Terminal and run these command.
$ node app
Give me some ideias :P
MIT Free Software, Free Examples, Free hugs!