- Account with Uniform with team admin permissions.
- Npm token provided by the Uniform team.
- Developer account with Contentful.
- Install Uniform app into your Contentful space.
-
Set NPM_TOKEN environment variable with the value provided by Uniform team:
export set NPM_TOKEN=....
-
Run
npm install
-
Set your environment variable credentials in
.env
(see.env.EXAMPLE
):CONTENTFUL_SPACE_ID="" CONTENTFUL_ACCESS_TOKEN="" CONTENTFUL_MANAGEMENT_TOKEN="" // Uniform connection details UNIFORM_API_KEY="" UNIFORM_PROJECT_ID="" // API key for the Amplitude plugin GATSBY_AMPLITUDE_API_KEY=""
-
Run
npm run develop
to build and run locally in dev mode. -
Run
npm run build
andnpm run serve
to run production build and serve locally.