Google

The Google app is a wrapper around different Google APIs. It provides a consistent interface for interacting with the Google within the confines of our framework.

It comes with the added benefit of leveraging a data lake (if you have one setup) to cache the results of your api calls (saving money). Along with logging and other framework benefits.

Contact us to learn more about our data lake solution.

Install

Follow these instructions to use the Google wrapper in your project.

Package

Install the package into your project:

pnpm install @juicyllama/app-google

Environment Variables

Add the following environment variables to your project:

GOOGLE_MAPS_API_KEY=your_api_key

Modules

The package is built as a set of modules, you choose which modules you need to import into your project.

Database Configuration

To make use of any of the modules, make sure that in your root module you have imported and configured the TypeOrmModule like so:

import { mongodbConfig } from '@juicyllama/core'
import { Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'

@Module({
    imports: [
        TypeOrmModule.forRootAsync(mongodbConfig())
        ...
    ]
})
export class AppModule {}

Docs v.0.14.0 Copyright © 2024