zgFile is a user-friendly file sharing web application that allows users to easily upload, store, and share files with others. With a simple and intuitive interface, zgFile makes it effortless to manage your files and collaborate with colleagues or friends. Whether you're sharing documents, images, or videos, zgFile ensures secure and seamless file sharing for all your needs.
- Node.js version 20 or higher installed on your machine.
- MongoDB URI
Follow these steps to set up locally:
- Install the required dependencies:
For Backend:
cd backend
npm install
For Frontend:
cd frontend
npm install
- Set up the configuration file:
- Update the necessary environment variables in the
.env
file, such as database credentials and token secrets.
For Backend:
PORT=8000
MONGODB_URI=mongodb+srv://<DB_USERNAME>:<DB_PASSWORD>@cluster0.bftbu.mongodb.net/zgfiledb?retryWrites=true&w=majority
TOKEN_KEY=qpr@290_0^6ty
JWT_EXPIRES=1h
For Frontend:
NEXT_PUBLIC_BASE_URL=http://localhost:8000/api/v1
- Start the server:
For Backend:
npm run dev
For Frontend:
npm run dev
- Access server in your web browser at
For Backend:
http://localhost:8000
For Frontend:
http://localhost:3000