Coder Social home page Coder Social logo

gladchinda / advanced-multer-node-sourcecode Goto Github PK

View Code? Open in Web Editor NEW
24.0 2.0 11.0 380 KB

Source code for tutorial on advanced photo upload in Node using Multer and Jimp.

JavaScript 89.87% CSS 0.65% HTML 9.47%
nodejs multer jimp javascript photo-upload tutorial demo expressjs

advanced-multer-node-sourcecode's Introduction

advanced-multer-node-sourcecode

You can checkout the complete tutorial on Scotch: Advanced Photo Upload in Node.

Source code for tutorial on advanced photo upload in Node using Multer and Jimp. In order to run the demo on your local machine and experiment with the source code, do the following:

  • Clone the repository into a new directory on your machine

  • Run the following command from the new directory to install the dependencies:

npm install
  • Create a .env file in the root of the new directory with the following content:
# Avatar Upload Variables

AVATAR_FIELD=avatar
AVATAR_BASE_URL=/uploads/avatars
AVATAR_STORAGE=public/uploads/avatars
  • The app will run on port 3000 by default. If you would prefer another port, you can specify it in the bin/www file. Look for the following line in the file and replace '3000' with your desired port.
var port = normalizePort(process.env.PORT || '3000');
  • Finally, start the demo app by running the following command:
npm start

advanced-multer-node-sourcecode's People

Contributors

gladchinda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

advanced-multer-node-sourcecode's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.