0.2.14 • Published 3 years ago

@cherrytwist/populator v0.2.14

Weekly downloads
-
License
EUPL-1.2
Repository
github
Last release
3 years ago

Populate a Cherrytwist Ecoverse with data from a spreadsheet

This repository has functionality to enable the population of an Ecoverse with data from a spreadshet. The spreadsheet is a local file, in the "OpenDocument Spreadsheet" (ODS) format.

Spreadsheet Format

The spreadsheet does have a required format. An example of such a sheet is provided in this repo. If you want to make a custom load of data into an Ecoverse then please make a copy of this sheet and fill as needed.

Checks steps before starting:

  • Ensure that the Cherrytwist Server is available, and that it (for now) has authentication disabled.

Populating using custom locations or data file:

  • Make a copy of .env.default to creat a .env file
  • Edit this file to specify the values for the two environment variables:
    • CT_SERVER: The server file location. Note: the URL format to use depends on whether authentication is enabled or not. If not enabled then just use /graphql, if it is enabled then use admin/graphql after the server / port.
    • CT_DATA_TEMPLATE: The data template to use for population
    • AUTH_ADMIN_EMAIL, AUTH_ADMIN_PASSWORD: for specifying the credentials to be used for accessing the server (if authentication is enabled)

Execute the population

Finally you should now be in a position to run the data population!

  • Execute npm install - to ensure the dependencies in the project are installed
  • Execute npm run populate

Now you can navigate the web client and see a sample populated Ecoverse - enjoy!

Updating

The data inside the template file will be iterating as you create the sample data to populate the ecoverse.

The populator provides the ability to separately create / update the information on the following entities:

  • Organisation: execute npm run populate-organisations
  • Ecoverse/Challenge/Opportunity: execute npm run populate-context
0.2.14

3 years ago

0.2.12

3 years ago

0.2.11

3 years ago

0.2.10

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.9

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.2.2

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago