Welcome to UnityPages, a collaborative document editing application that enables real-time collaboration and editing. UnityPages is built using the MERN stack (MongoDB, Express.js, React.js, Node.js) and leverages WebSocket for real-time updates.
- Features
- Installation
- Backend Deployment
- Frontend Deployment
- Usage
- Technologies Used
- Contributing
- License
- Real-Time Collaboration: Multiple users can edit the document simultaneously with changes reflected in real-time.
- Rich Text Editing: Utilizes Quill.js for a feature-rich text editing experience.
- Document Sharing: Share documents via unique URLs.
- User-Friendly Interface: Intuitive UI built with React and styled with MUI.
- Node.js and npm installed on your machine.
- MongoDB Atlas account for database hosting.
- Git for version control.
git clone https://github.com/your-username/unitypages.git
cd unitypages
-
Navigate to the
server
directory:cd server
-
Install backend dependencies:
npm install
-
Create a
.env
file in theserver
directory and add your MongoDB Atlas connection string:MONGO_URL=mongodb://your-username:your-password@cluster0.mongodb.net/unitypages?retryWrites=true&w=majority
-
Start the backend server:
npm start
-
Navigate to the
client
directory:cd client
-
Install frontend dependencies:
npm install
-
Start the frontend development server:
npm start
To deploy the frontend on Vercel:
- Ensure the frontend project is prepared for deployment.
- Follow these steps on the Vercel dashboard:
- Click on “Add New…” and select “Project”.
- Import your Git repository.
- Configure the project settings:
- Project Name:
unitypages-frontend
- Framework Preset:
Create-React-App
- Root Directory:
client
- Project Name:
- Add environment variables:
GENERATE_SOURCEMAP
:false
- Deploy the project.
- Open the deployed frontend URL in your browser.
- The home page will redirect to a new document with a unique ID.
- Share the document URL with collaborators.
- Start editing and see changes in real-time.
- Frontend: React, MUI, Quill.js
- Backend: Node.js, Express.js, Socket.IO
- Database: MongoDB Atlas
- Deployment: Vercel
Contributions are welcome! Please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License.
Feel free to customize this README as per your specific needs! If there are any additional details or changes you'd like to include, let me know!