mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-24 04:10:15 +01:00
🪪mkdocs: social cards (#1428)
* mkdocs plugins: add plugin for social cards and plugin that allow to exclude a folder * docs: fix hyperlinks * mkdocs: social cards (descriptions) for 'contributions' and 'deployment' guides * mkdocs: social cards (descriptions) for all 'index.md' * mkdocs: social cards (descriptions) for 'features' and 'plugins' * mkdocs: social cards (descriptions) for 'general_info' * mkdocs: social cards (descriptions) for 'configuration' * mkdocs: social cards (descriptions) for 'installation' * mkdocs: minor fixes * update librechat.svg * update how_to_contribute.md add reference to the official GitHub documentation
This commit is contained in:
parent
18cd02d44e
commit
bce4f41fae
62 changed files with 393 additions and 329 deletions
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: 🧑💻 Code Standards and Conventions
|
||||
description: This guide covers the best practices for JavaScript coding, such as following the Airbnb Style Guide, using CommonJS modules, structuring the API using Express, Mongoose, and services, and testing and documenting the code using Jest, Supertest, Playwright, JSDoc, and TypeScript.
|
||||
weight: -7
|
||||
---
|
||||
# Coding Conventions
|
||||
|
|
@ -67,7 +68,7 @@ Defines Mongoose models to represent data entities and their relationships.
|
|||
|
||||
### 4. Database Access (MongoDB and Mongoose)
|
||||
|
||||
- Use Mongoose (https://mongoosejs.com) as the MongoDB ODM.
|
||||
- Use Mongoose ([https://mongoosejs.com](https://mongoosejs.com)) as the MongoDB ODM.
|
||||
- Create separate model files for each entity and ensure clear separation of concerns.
|
||||
- Use Mongoose schema validation to enforce data integrity.
|
||||
- Handle database connections efficiently and avoid connection leaks.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue