Files manager

This project is a summary of this back-end trimester: authentication, NodeJS, MongoDB, Redis, pagination and background processing.

Description

  • How to create an API with Express
  • How to authenticate a user
  • How to store data in MongoDB
  • How to store temporary data in Redis
  • How to setup and use a background worker

Setup

Ubuntu OS

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.6 LTS
Release:        18.04
Codename:       bionic

Install NodeJS 12.11.x

$ curl -sL https://deb.nodesource.com/setup_12.x -o nodesource_setup.sh
$ sudo bash nodesource_setup.sh
$ sudo apt install nodejs -y

$ nodejs -v
v12.22.12
$ npm -v
6.14.16

Install Jest, Babel, and ESLint in your project directory:

$ npm install --save-dev jest
$ npm install --save-dev babel-jest @babel/core @babel/preset-env
$ npm install --save-dev eslint

Include the configuration files:

Finally, run npm install from the terminal of your project folder to install all necessary project dependencies.