Skip to content

Using the platform locally (for manual tests of demo scenarios)

andrea rota edited this page Jan 24, 2022 · 2 revisions

API

Follow the main README.

Instead of seeding the instance with test data, use make restore-dumps: this will currently (January 2022) and until further notice populate the database with some of the test data that would be inserted with make seed-dbs (test user accounts), global admin areas, and all the feature data (bioregional and species) prepared for selected demo projects located in Brazil, Australia/Kimberley and Okavango.

App

  • create app/.env (replacing URLs with the relevant local development ones, if different)
NODE_ENV=development

NEXT_PUBLIC_MAPBOX_API_TOKEN=<token>
STORYBOOK_MAPBOX_API_TOKEN=<token>

NEXT_PUBLIC_API_URL=http://localhost:3030
STORYBOOK_API_URL=http://localhost:3030

NEXTAUTH_URL=http://localhost:3000
NEXT_PUBLIC_VERCEL_URL=http://localhost:3000
  • nvm use
  • yarn install
  • yarn dev