- Fetch data from the Contentful GraphQL API
- Dynamic routes
- Utilize the Svelte component lifecycle
- Handle contact form submissions and create entries in Contentful
- Rearrange layout of each page in Contentful
Add animations- Add animation options in Contentful (nice-to-have)
- Live Preview in Contentful
- Improve accessibility
- Performance optimization
- Add Linting
- Add Testing
npm install
npm run dev
If you need to setup a new Contentful environment:
npm run setup
npm run build
Preview the production build with npm run preview
.
In order to run migration commands, you will need the Contentful CLI. This will give you access to two commands in particular: contentful space export
and contentful space import
. You must first export the data from a given Environment before it is imported into another. The data is exported into a json file which you then must import to a target environment.
Ensure you have the latest Node.js release.
npm install -g contentful-cli
After installing the CLI, the user needs to authenticate with Contentful. This is done by logging in using a Contentful management API token. Ours can be found in .env.
contentful login --management-token YOUR_CONTENT_MANAGEMENT_TOKEN
contentful space export --space-id 'SPACE_ID' --environment-id 'master' --management-token 'MANAGEMENT_TOKEN'
contentful space import --space-id 'SPACE_ID' --environment-id 'dev' --management-token 'MANAGEMENT_TOKEN' --content-file 'path_to_your_exported_file'