API_MOCKS=true
to your .env
, or export API_MOCKS=true
to your .env.secret
file.libs/api/mocks
.cms
and content-search
domains of the API these in turn depend on Elasticsearch. Hence we have to have Elasticsearch running on our machine for these domains to function as expected. The recommended approach to running Elasticsearch on your machine depends on what you want to work on:cms
or content-search
domains such as add models or alter Elasticsearch queries it's recommended you run Elasticsearch locally you can find further instructions on how to achieve this under search-indexer dev-services section../scripts/run-es-proxy.sh
from island.is rootForwarding from 0.0.0.0:9200 -> 9200
in terminalcms
and content-search
domains for the website to work as expected.CONTENTFUL_HOST=
- Get from Contentful (depends on whether you use prod or preview tokens)CONTENTFUL_ACCESS_TOKEN=
- Get from Contentful or by running yarn get-secrets api
CONTENTFUL_MANAGEMENT_ACCESS_TOKEN=
- Get from Contentful (only used when generating models from Contentful in API) ELASTIC_NODE=http://localhost:9200/
localhost:4200