hire-library
TypeScript icon, indicating that this package has built-in type declarations

0.1.8 • Public • Published

Hire Framework

A simple package (in Typescript) that has the necessary framework level configurations with the following

  • Logging (Winston + GCP Cloud logging)
  • Database Connnectivity (Currently supports GCP Firestore and MongoDB)

Logging

    Container.set(Logger, new Logger());

Inject the instance like below.

        Container.set(
            MyRepo,
            new MyRepo(
                new FireStoreDb(
                new FireStoreDbConnection(
                    process.env.GCP_PROJECT_ID as string,
                    path.join(__dirname, "./keyFile.json")
                ),
                "repo-name"
                )
            )
        );

To Contribute

Clone the repo and start with the changes.

Build project

npm run build

Test package

npm test

Readme

Keywords

Package Sidebar

Install

npm i hire-library

Weekly Downloads

0

Version

0.1.8

License

ISC

Unpacked Size

107 kB

Total Files

116

Last publish

Collaborators