@gooddata/create-gooddata-react-app
A CLI tool that creates a new React project connected to the GoodData platform
Last updated 19 days ago by gooddata-ci .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @gooddata/create-gooddata-react-app 
SYNC missed versions from official npm registry.

gooddata-create-gooddata-react-app

© 2019 GoodData Corporation

GoodData Create React App

This is a CLI tool that creates a new React project with a proxy set up to connect to your projects on the GoodData platform. The new app features some widgets and helpers that could come in handy. The app is built on top of Create React App. For more info see Create React App documentation.

How to use

To create a project called my-app, run this in your terminal:

npx @gooddata/create-gooddata-react-app my-app

Then follow the instructions provided by the CLI.

When navigating to your application using an IP address instead of localhost, you may run into 401 errors while trying to log in. This is due to proxying and cookie rewriting rules that the generated application uses to get around CORS. Use localhost instead of IP addresses to access the application because the development server rewrites GDC cookies to be for localhost.

NOTE: We use yarn dependency manager. To install it, follow its documentation. If you don't want to use yarn, provide the --no-install flag like npx @gooddata/create-gooddata-react-app my-app --no-install . This will skip calling yarn install and you will have to manually install the dependencies of the created app. Please note that we do not provide package-lock.json so the application may not work properly when dependencies are installed using npm.

CLI usage

@gooddata/create-gooddata-react-app supports several optional flags:

  • -d, --domainUrl <domain> URL of your GoodData domain
  • -c, --config <config> path to configuration file (see below)
  • --no-install skip yarn installing the app dependencies
  • --verbose output additional logs, useful mainly for debugging and bug reports
  • -h, --help output usage information

Configuration file

The configuration file has the following structure:

{
    "domain": "(Required) domain where the project is hosted, e.g. https://developer.na.gooddata.com",
    "appName": "(Optional) name of the app to use"
}

Prerequisites

Before running @gooddata/create-gooddata-react-app, please make sure that you have all compatible technologies installed on your device.

Troubleshooting

In case there are errors while running @gooddata/create-gooddata-react-app, please try these steps.

Remove older versions

Sometimes having older versions of @gooddata/create-gooddata-react-app can cause errors. In that case please remove any previously installed versions by running

npm uninstall -g @gooddata/create-gooddata-react-app
yarn global remove @gooddata/create-gooddata-react-app

Force npx to use the latest version

You can force npx to use latest version of the tool by running

npx --ignore-existing @gooddata/create-gooddata-react-app my-app

Enable verbose output

You can increase the logging level of @gooddata/create-gooddata-react-app my-app by providing the --verbose flag like

npx @gooddata/create-gooddata-react-app my-app --verbose

Current Tags

  • 0.4.2-0                                ...           alpha (2 months ago)
  • 0.2.1-qduval-master-2019-09-10T13-08-33-483Z                                ...           beta (9 months ago)
  • 0.5.3                                ...           latest (19 days ago)

53 Versions

  • 0.5.3                                ...           19 days ago
  • 0.5.2                                ...           a month ago
  • 0.5.1                                ...           a month ago
  • 0.5.0                                ...           2 months ago
  • 0.4.2-0                                ...           2 months ago
  • 0.4.1                                ...           5 months ago
  • 0.4.1-0                                ...           5 months ago
  • 0.4.0                                ...           5 months ago
  • 0.3.0                                ...           6 months ago
  • 0.2.2-2                                ...           6 months ago
  • 0.2.2-1                                ...           7 months ago
  • 0.2.2-alpha.4                                ...           7 months ago
  • 0.2.2-alpha.3                                ...           7 months ago
  • 0.2.2-alpha.2                                ...           7 months ago
  • 0.2.2-alpha.1                                ...           8 months ago
  • 0.2.2-0                                ...           8 months ago
  • 0.2.1-qduval-master-2019-09-10T13-08-33-483Z                                ...           9 months ago
  • 0.2.1                                ...           9 months ago
  • 0.1.33                                ...           9 months ago
  • 0.2.0                                ...           9 months ago
  • 0.1.32                                ...           10 months ago
  • 0.1.32-0                                ...           10 months ago
  • 0.1.31                                ...           10 months ago
  • 0.1.31-0                                ...           10 months ago
  • 0.1.30                                ...           10 months ago
  • 0.1.30-0                                ...           10 months ago
  • 0.1.29                                ...           10 months ago
  • 0.1.28                                ...           10 months ago
  • 0.1.28-1                                ...           10 months ago
  • 0.1.28-0                                ...           10 months ago
  • 0.1.27                                ...           10 months ago
  • 0.1.26                                ...           10 months ago
  • 0.1.25                                ...           10 months ago
  • 0.1.24                                ...           10 months ago
  • 0.1.23                                ...           10 months ago
  • 0.1.22                                ...           10 months ago
  • 0.1.21                                ...           10 months ago
  • 0.1.20                                ...           10 months ago
  • 0.1.19                                ...           10 months ago
  • 0.1.18                                ...           10 months ago
  • 0.1.17                                ...           10 months ago
  • 0.1.16                                ...           10 months ago
  • 0.1.15                                ...           10 months ago
  • 0.1.14                                ...           10 months ago
  • 0.1.13                                ...           10 months ago
  • 0.1.12                                ...           10 months ago
  • 0.1.11                                ...           10 months ago
  • 0.1.10                                ...           10 months ago
  • 0.1.9                                ...           10 months ago
  • 0.1.8                                ...           10 months ago
  • 0.1.7                                ...           10 months ago
  • 0.1.6                                ...           10 months ago
  • 0.1.0                                ...           10 months ago

Copyright 2014 - 2017 © taobao.org |