solaris-mongoose-model
v1.1.10
Published
This project serves as the persistence layer for managing database connections, data access objects (DAOs), models, and interfaces. It is designed to provide a modular and scalable structure for interacting with the database.
Readme
Persistence Layer
This project serves as the persistence layer for managing database connections, data access objects (DAOs), models, and interfaces. It is designed to provide a modular and scalable structure for interacting with the database.
Project Structure
persistence/
├── package.json
├── tsconfig.json
├── src/
├── index.ts
├── daos/ │
├── index.ts │
├── db/ │
├── connection.ts
├── interfaces/ │
├── index.ts │
├── models/ │
├── index.ts │
Key Directories
src/: Contains the main source code for the persistence layer.db/: Handles database connection logic.daos/: Contains Data Access Objects (DAOs) for interacting with the database.models/: Defines the data models used in the application.interfaces/: Contains TypeScript interfaces for type definitions.
Getting Started
Prerequisites
- Node.js (v16 or later)
- npm or yarn
- TypeScript
Installation locally for DEV
- Clone the repository:
git clone https://github.com/Solaris-Suite/persistence.git cd persistence npm install
Install the Persistence Layer as a Dependency:
- Add .npmrc file to your root project.
- Package the persistence layer as an npm module or include it as a Git submodule in your service project.
- npm install @solaris-suite/persistence
