0.0.1 • Published 3 years ago

nestjs-aws-files v0.0.1

Weekly downloads
3
License
UNLICENSED
Repository
github
Last release
3 years ago

How to use?

  • Add in your root module:
import { AwsFileModule } from '@nestjsawsfiles/nestjs-aws-files';

@Module({
  imports: [
    AwsFileModule.forRoot({
      accessKeyId: 'required',
      secretAccessKey: 'required',
      region: 'required',
      bucket: 'required'
    })
  ],
  exports: [],
  providers: []
})
  • Inject in your service:
import { AwsFileService } from '@nestjsawsfiles/nestjs-aws-files';

@Injectable()
export class TestService {

  constructor(
    private awsFileService: AwsFileService
  ) {}

  upload(file: any) {
    return this.awsFileService.upload(file);
  }
}

:thinking: how to contributing

  • First, create a fork this repositoy;
  • After of create the fork, make a clone in local machine of repository that forked;
  • Create a branch in your machine, example: git checkout -b my-changes;
  • Now... code, code and coffee :coffee:;
  • Make commit your changed, example: git commit -m ':rocket: my changed features';
  • Make a push for branch, example: git push origin my-changes;
  • Last, open a pull request.

Made by leonardoRosaa :yellow_heart: :rocket: