Coder Social home page Coder Social logo

mburuxx / alx-files_manager Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 45 KB

This project is about developing a file management platform with secure user authentication, file upload, and management. It utilizes NodeJS, MongoDB, Redis, and Kue for efficient data handling, caching, and background processing, along with an ExpressJS API. The objective is to create a scalable system showcasing back-end development skills.

JavaScript 98.89% Python 1.11%
api es6 expressjs kue mongodb nodejs redis

alx-files_manager's Introduction

0x04. Files Manager

Description

This project summarizes the back-end trimester, covering authentication, NodeJS, MongoDB, Redis, pagination, and background processing. The goal is to create a platform for file upload and viewing.

Team

  • John Mburu
  • Kate Wuyep

Resources

Read or watch:

Repository

Usage

  1. Clone the repository
  2. Install dependencies: $ npm install
  3. Start the server: $ npm run start-server

Features

  • User authentication via token
  • List all files
  • Upload new files
  • Change file permissions
  • View files
  • Generate image thumbnails

Technologies

  • Back-end: NodeJS, ExpressJS
  • Database: MongoDB
  • Caching: Redis
  • Queue Management: Kue
  • JavaScript: ES6

Learning Objectives

By the end of this project, you should be able to:

  • Develop an API using Express
  • Implement user authentication
  • Manage data storage in MongoDB
  • Utilize Redis for temporary data storage
  • Implement and manage background workers

Requirements

  • Allowed editors: vi, vim, emacs, Visual Studio Code
  • Files interpreted/compiled on Ubuntu 18.04 LTS using node (version 12.x.x)
  • All files must end with a new line
  • Mandatory README.md file at the project root
  • Use .js extension for all JavaScript files
  • Code linting with ESLint

Provided Files

  • package.json
  • .eslintrc.js
  • babel.config.js

Tasks

0. Redis utils

Create utils/redis.js with RedisClient class for managing Redis operations.

1. MongoDB utils

Create utils/db.js with DBClient class for managing MongoDB operations.

2. First API

Setup Express server in server.js and define routes in routes/index.js with endpoints for status and stats.

3. Create a new user

Add POST /users endpoint in routes/index.js and implement logic in controllers/UsersController.js to create users.

4. Authenticate a user

Implement user authentication endpoints in routes/index.js, handled by AuthController.js and UsersController.js.

5. First file

Implement POST /files endpoint in routes/index.js and logic in controllers/FilesController.js for file upload.

6. Get and list file

Implement endpoints in routes/index.js and controllers/FilesController.js to retrieve and list files.

alx-files_manager's People

Contributors

mburuxx avatar kaywuyep avatar

Watchers

 avatar

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.