This is the backend repository of LiveDocs. For the frontend implementation, please visit:
- 🔐 User authentication and authorization
- 📝 Document CRUD operations
- 📤 File upload handling
- NestJS - Node.js framework
- TypeScript - Programming Language
- MongoDB - Database
- Mongoose - MongoDB ODM
- Jest - Testing Framework
- Swagger - API Documentation
- Node.js (v18 or higher)
- npm or yarn
- Git
- MongoDB
- Clone the repository
git clone https://github.com/yourusername/live-docs-be.git
cd live-docs-be- Install dependencies
npm install
# or
yarn install- Set up environment variables
Create a
.envfile in the root directory:
#MongoDB
MONGODB_URI=
MONGODB_DB_NAME=
#Google
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_CALLBACK_URL=
#JWT
JWT_SECRET=
JWT_REFRESH_TOKEN_SECRET=
JWT_REFRESH_TOKEN_EXPIRES_IN=
JWT_ACCESS_TOKEN_EXPIRES_IN=- Run the development server
npm run start:dev
# or
yarn start:devThe API will be available at http://localhost:8000
live-docs-be/
├── src/
│ ├── auth/ # Authentication modules
│ ├── users/ # User management
│ ├── documents/ # Document management
│ ├── common/ # Shared utilities
│ └── config/ # Configuration
├── test/ # Test files
└── docs/ # Documentation
API documentation is available at /api-docs when running the server locally.
npm run start:dev- Start development servernpm run build- Build for productionnpm run start:prod- Start production servernpm run test- Run testsnpm run test:e2e- Run end-to-end testsnpm run lint- Run ESLint
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License.