Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

LiveDocs Backend 🚀

LiveDocs Logo

Backend API for LiveDocs - A modern, real-time collaborative documentation platform.

NestJS TypeScript MongoDB Jest

API Docs · Frontend Repo

🔗 Related Repositories

This is the backend repository of LiveDocs. For the frontend implementation, please visit:

✨ Features

  • 🔐 User authentication and authorization
  • 📝 Document CRUD operations
  • 📤 File upload handling

🛠️ Built With

🚀 Getting Started

Prerequisites

  • Node.js (v18 or higher)
  • npm or yarn
  • Git
  • MongoDB

Installation

  1. Clone the repository
git clone https://github.com/yourusername/live-docs-be.git
cd live-docs-be
  1. Install dependencies
npm install
# or
yarn install
  1. Set up environment variables Create a .env file 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=
  1. Run the development server
npm run start:dev
# or
yarn start:dev

The API will be available at http://localhost:8000

Project Structure

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

API documentation is available at /api-docs when running the server locally.

Available Scripts

  • npm run start:dev - Start development server
  • npm run build - Build for production
  • npm run start:prod - Start production server
  • npm run test - Run tests
  • npm run test:e2e - Run end-to-end tests
  • npm run lint - Run ESLint

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages