# @binod7/source

> A Monorepo for Prisma and Rumsan User Libraries

Latest version **0.0.0** (published 2023-12-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @binod7/source
pnpm add @binod7/source
yarn add @binod7/source
bun add @binod7/source
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0 |
| Published | 2023-12-15 |
| First published | 2023-12-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 21 |
| Unpacked size | 58.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | thebinod7 |

## Links

- npm: https://www.npmjs.com/package/@binod7/source
- npm.io page: https://npm.io/package/@binod7/source

## Dependencies (21)

- [rxjs](https://npm.io/package/rxjs.md) ^7.8.1
- [axios](https://npm.io/package/axios.md) ^1.0.0
- [tslib](https://npm.io/package/tslib.md) ^2.3.0
- [ethers](https://npm.io/package/ethers.md) ^6.9.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [otplib](https://npm.io/package/otplib.md) ^12.0.1
- [passport](https://npm.io/package/passport.md) ^0.7.0
- [dotenv-cli](https://npm.io/package/dotenv-cli.md) ^7.3.0
- [@nestjs/jwt](https://npm.io/package/@nestjs/jwt.md) ^10.2.0
- [@nestjs/core](https://npm.io/package/@nestjs/core.md) ^10.2.10
- [passport-jwt](https://npm.io/package/passport-jwt.md) ^4.0.1
- [@nestjs/common](https://npm.io/package/@nestjs/common.md) ^10.0.2
- [@nestjs/config](https://npm.io/package/@nestjs/config.md) ^3.1.1
- [@prisma/client](https://npm.io/package/@prisma/client.md) ^5.7.0
- [@nestjs/swagger](https://npm.io/package/@nestjs/swagger.md) ^7.1.17
- [class-validator](https://npm.io/package/class-validator.md) ^0.14.0
- [@nestjs/passport](https://npm.io/package/@nestjs/passport.md) ^10.0.3
- [reflect-metadata](https://npm.io/package/reflect-metadata.md) ^0.1.14
- [class-transformer](https://npm.io/package/class-transformer.md) ^0.5.1
- [@nestjs/event-emitter](https://npm.io/package/@nestjs/event-emitter.md) ^2.0.3
- [@nestjs/platform-express](https://npm.io/package/@nestjs/platform-express.md) ^10.0.2

## Recent versions

- 0.0.0 (latest) — 2023-12-15

## README

# Rumsan Workspace

A Monorepo for Prisma and Rumsan User Libraries

## Prerequisite

- Postgres Database
- Node.js v20.\* (Recommended)
- NestJS/CLI Installed
  ```bash
  npm install -g @nestjs/cli
  ```

## Run Locally

Setp 1: Clone the project

```bash
  git clone git@github.com:rumsan/libraries.git
```

Step 2: Go to the project directory and install dependencies

```bash
  cd my-project
  npm install
```

Step 3: Add following details to .env file inside project root and update variables

```bash
DATABASE_URL=postgres://USERNAME:PASSWORD@HOST:DB_PORT/DB_NAME
JWT_SECRET=hello12345xyz
JWT_EXPIRY_TIME=60m
PORT=3333
```

Step 4: Migrate and seed prisma db

```bash
  npx prisma migrate dev
```

Seed database with

```bash
  npx prisma db seed
```

Step 5: Run project

```bash
  npm run dev
```

Step 6: Visit API docs at: http://localhost:3333/api/docs

## Usage/Examples

Go to `apps/nest-api/src/app/app.module.ts` and see the implementation of PrismaDbModule and RsUserModule.

```javascript
import { Module } from '@nestjs/common';
import { RsUserModule } from '@rumsan/user';
import { PrismaDbModule, PrismaService } from '@rumsan/prisma';

import { AppController } from './app.controller';
import { AppService } from './app.service';
import { EventEmitterModule } from '@nestjs/event-emitter';
import { ListenerModule } from './listeners/listners.module';
import { ConfigModule } from '@nestjs/config';

@Module({
	imports: [
		ConfigModule.forRoot({ isGlobal: true }),
		EventEmitterModule.forRoot({ maxListeners: 10, ignoreErrors: false }),
		ListenerModule,
		PrismaDbModule,
		RsUserModule,
	],
	controllers: [AppController],
	providers: [AppService],
})
export class AppModule {}
```

---
_Source: https://npm.io/package/@binod7/source · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
