Skip to content

simple file upload and download webapp, backend all in javascript

Notifications You must be signed in to change notification settings

fl0wstate/alx-files_manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple File Manager on the Web!


  • Tech Stack will include; redis, mongodb, express, nodejs.
  • Making a simple file upload, and download webapp on the web.
  • Main goal is to make sure one has a better understanding of caching, queing requests, and many more nodejs functionality.

Synchronous Limits

  • All events emitted are usually Asynchronous function, meaning you can either handle them with legacy code callback methods or async await.
  • Had a bit of a challenge while checking for the node-redis client connection status, ending up with a simple implementation like this one.
    ...
    
    (async () => {
        // will return false immediately due to the sync nature of the function
        console.log(redisClient.isAlive());   // false
    
        settimeout(() => {
            // allows a time delay, making sure that the connection was made correctly
            console.log(redisClient.isAlive());   // true
        }, 2000);
    
        ...
    })();
  • Promisify allows you to turn legacy callback methods into promise objects. -**

About

simple file upload and download webapp, backend all in javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published