Watch Video Demo - Learn how DraftShare works.
DraftShare is a web application designed to make PDF management and collaboration effortless. It allows users to sign up, upload PDFs, share them with others, and collaborate through comments.
- Upload and view PDFs.
- Collaborate on PDFs by adding comments.
- Share PDFs with workspace users.
- View and comment on shared PDFs.
- Easily search for contracts.
- User authentication and authorization with JWT.
- Unauthorized users can view PDFs via a shared link but need access to view comments.
- Rename files for easier tracking.
- Input validation ensures a smooth experience.
- Beautiful and intuitive UI for collaboration.
Before installation, ensure you have the following installed or have knowledge of:
Backend Setup:
-
Clone the main branch to your local machine:
git clone https://github.com/JasonDsouza212/sharedraft.git
-
Navigate to the project directory:
cd sharedraft
-
Navigate to the backend directory:
cd server
-
Set the .env file with the following values in the backend folder:
.env PORT=**4000** MONGO_URI=**Your MongoDB URL** SECRET=**"BASE64 ENCODED string"** REACT_HASH_KEY=**"BASE 64 string"** SERVER_BASE_URL="**Your server URL or localhost:4000"**
-
Install npm packages:
npm install
-
Run the backend locally:
npm start
-
Navigate to the frontend directory:
cd client
-
Set the .env file with the following values:
.env VITE_REACT_HASH_KEY= Your BASE64 HASH (must match the server's HASH) VITE_SERVER_BASE_URL= Server base URL or localhost:4000 for development
-
Install npm packages:
npm install
-
Run the frontend locally:
npm run dev
-
You can access the application at:
http://localhost:5173/
- No 3rd party service is used to upload the PDF file , it has been uploaded directly to mongoDB as chuncks