gatsby-source-inmotion

0.1.4 • Public • Published

gatsby-source-inmotion

This is a source plugin for inMotion CRM

Set The Plugin Config

Generate a private key for the project using the link below, then create relevant environment variables for each key.

https://console.firebase.google.com/u/0/project/YOUR-PROJECT-NAME/settings/serviceaccounts/adminsdk

In gatsby-config.js :

module.exports = {
    const { privateKey } = JSON.parse(GATSBY_FS_PRIVATE_KEY)
    plugins: [
                {
            resolve: `gatsby-source-inmotion`,
            options: {
                // point to the database details in env vars
                credential: {
                    type: "service_account",
                    project_id: process.env.GATSBY_FS_PROJECT_ID,
                    private_key_id: process.env.GATSBY_FS_KEY_ID,
                    private_key: privateKey,
                    client_email: process.env.GATSBY_FS_CLIENT_EMAIL,
                    client_id: process.env.GATSBY_FS_CLIENT_ID,
                    auth_uri: "https://accounts.google.com/o/oauth2/auth",
                    token_uri: "https://oauth2.googleapis.com/token",
                    auth_provider_x509_cert_url: "https://www.googleapis.com/oauth2/v1/certs",
                    client_x509_cert_url: process.env.GATSBY_FS_CLIENT_CERT_URL
                },
                // your firebase database root url
                databaseURL: process.env.GATSBY_FS_DB_URL,
                cloudinaryURL: process.env.GATSBY_CLOUDINARY_IMAGE_URL,
            },
        },
    ],
}

Open a terminal inside the plugins/gatsby-source-plugin folder, and then run npm install.

Package Sidebar

Install

npm i gatsby-source-inmotion

Weekly Downloads

0

Version

0.1.4

License

MIT

Unpacked Size

15 kB

Total Files

6

Last publish

Collaborators

  • theoatmotion