Skip to content

ian-shade/File-Manager-Nestjs

Repository files navigation

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Usage

  1. Authentication: Ensure that users are authenticated before accessing the file manager. You can customize the authentication strategy in the auth.guard.ts file.

  2. User Access Control: The application utilizes CASL abilities to control user access to folders and files. Update the casl-abilities.ts file to define the access rules according to your requirements.

  3. Check-in and Check-out: To prevent concurrent edits, the application supports the check-in and check-out mechanism. Users must check out a file before editing and check it back in after making changes. Check-out and check-in functionality is implemented in the checkin.service.ts file.

  4. Download Files: Users can download files using the provided download functionality. Customize the download route and logic in the download.controller.ts file.

  5. Alot more features check the screenshots below or the code for more details.

Screenshots

Auth Feature

Files Feature

Folder Feature

Installation

$ yarn install

Running the app

## custom script to start postgres in docker and push migrations
## only use this once you understand the concept. 
$ yarn db:dev:restart 


# run nestjs app 
$ yarn start:dev

# start postgresql container
$ docker compose up dev1

#create .env file add the database url : 
## .env

# DATABASE_URL="postgresql://postgres:123@localhost:5434/nest?schema=public"
# JWT_SECRET='super-secret'

# migrate database schema 
$ npx prisma migrate dev

# starting prisma studio
$ npx prisma studio

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors