A progressive Node.js framework for building efficient and scalable server-side applications.
-
Authentication: Ensure that users are authenticated before accessing the file manager. You can customize the authentication strategy in the auth.guard.ts file.
-
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.
-
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.
-
Download Files: Users can download files using the provided download functionality. Customize the download route and logic in the download.controller.ts file.
-
Alot more features check the screenshots below or the code for more details.
$ yarn install## 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