0.1.8 • Published 2 years ago

hire-library v0.1.8

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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