node.js - Profile pictures in web app - best practice of implementing -


i want implement profile pictures (avatars) simple , safe possible, i'm using express+passport+mongoose+socket.io, latest versions.
have no experience such functionality, , after few hours of intense googling, still have no solid idea start , how make cosy , simple, yet safe.

the question how 1 implement user's usage of avatars in web app, via file uploads, or via gravatar, need advise on start

express + passport + mongoose, seems option.

first need persist data somewhere, that's mongodb useful. mongoose odm can create models perform crud (create, read, update, delete) operations.

then need server comunicates client , database. express node.js framework makes easy set session, routes, etc.

the users gotta authenticate before avatar send, passport library helps , can set express.

socket.io, node module creates persistent connection client can comunicate in "real-time". don't think project unless you're planning avatar image change in real-time when updated.

i suggest start setting express , authentication passport


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -