0.0.7 • Published 5 years ago

sd-nest-auth v0.0.7

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

using sd-nest-auth

install npm package

> npm i sd-nest-auth

import sd-nest-auth module

import { Module } from '@nestjs/common';
import { AuthModule } from 'sd-nest-auth';
import { TypeOrmModule } from '@nestjs/typeorm';
import { join } from 'path';

@Module({
  imports: [
    TypeOrmModule.forRoot({
      type: 'mongodb',
      host: 'localhost',
      database: 'mep2',
      entities: [join(__dirname, './../**/**.entity{.ts,.js}')],
      synchronize: true,
      useNewUrlParser: true,
    }),
    AuthModule,
  ],
})
export class AppModule {}

start server

npm run start:dev

api calls

Alt Text