gatsbyjs / gatsby-starter-landing-page Goto Github PK
View Code? Open in Web Editor NEWCreate custom landing pages using Gatsby and Contentful
Home Page: https://landingpagestarter.gatsbyjs.io/
Create custom landing pages using Gatsby and Contentful
Home Page: https://landingpagestarter.gatsbyjs.io/
While following through with the instructions stated in readme, seemingly gatsby-provision
works fine (as stated below)
β― yarn gatsby-provision
yarn run v1.22.17
$ gatsby-provision-contentful --contentful-data-path='./.contentful/landing-page-model-and-content.json'
To set up this project you will need your Contentful Space ID
and API access tokens. Please use an empty Contentful space for this.
You can find all the needed information in your Contentful space under:
app.contentful.com -> Space Settings -> API keys
The Content Delivery API Token
will be used to ship published production-ready content in your Gatsby app.
The Content Management API Token
will be used to import and write data to your space.
Ready? Let's do it! π
? Your Space ID XXXXXXXXXXXXX
? Your Content Delivery API access token XXXXXXXXXXXXX
? Your Content Management API access token XXXXXXXXXXXXX
Writing config file...
Config file /home/max/Development/GitHub/nullops-landing-page/node_modules/.env.development written
Config file /home/max/Development/GitHub/nullops-landing-page/node_modules/.env.production written
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
β The following entities are going to be imported: β
ββββββββββββββββββββββββββββββββββ¬ββββββββββββββββββ€
β Content Types β 4 β
ββββββββββββββββββββββββββββββββββΌββββββββββββββββββ€
β Tags β 0 β
ββββββββββββββββββββββββββββββββββΌββββββββββββββββββ€
β Editor Interfaces β 4 β
ββββββββββββββββββββββββββββββββββΌββββββββββββββββββ€
β Entries β 44 β
ββββββββββββββββββββββββββββββββββΌββββββββββββββββββ€
β Assets β 14 β
ββββββββββββββββββββββββββββββββββΌββββββββββββββββββ€
β Locales β 1 β
ββββββββββββββββββββββββββββββββββΌββββββββββββββββββ€
β Webhooks β 1 β
ββββββββββββββββββββββββββββββββββ΄ββββββββββββββββββ
β Validating content-file
β Initialize client (1s)
β Checking if destination space already has any content and retrieving it (2s)
β Apply transformations to source data (1s)
β Push content to destination space
β Connecting to space (1s)
β Importing Locales (1s)
β Importing Content Types (1s)
β Publishing Content Types (3s)
β Importing Tags (1s)
β Importing Editor Interfaces (2s)
β Uploading Assets [skipped]
β Importing Assets (6s)
β Publishing Assets (7s)
β Archiving Assets (1s)
β Importing Content Entries (7s)
β Publishing Content Entries (20s)
β Archiving Entries (1s)
β Creating Web Hooks (1s)
Finished importing all data
ββββββββββββββββββββββββββ
β Imported entities β
βββββββββββββββββββββ¬βββββ€
β Locales β 1 β
βββββββββββββββββββββΌβββββ€
β Content Types β 4 β
βββββββββββββββββββββΌβββββ€
β Tags β 0 β
βββββββββββββββββββββΌβββββ€
β Editor Interfaces β 4 β
βββββββββββββββββββββΌβββββ€
β Assets β 14 β
βββββββββββββββββββββΌβββββ€
β Published Assets β 14 β
βββββββββββββββββββββΌβββββ€
β Archived Assets β 0 β
βββββββββββββββββββββΌβββββ€
β Entries β 44 β
βββββββββββββββββββββΌβββββ€
β Published Entries β 44 β
βββββββββββββββββββββΌβββββ€
β Archived Entries β 0 β
βββββββββββββββββββββΌβββββ€
β Webhooks β 1 β
βββββββββββββββββββββ΄βββββ
The import took 1 minute (45s)
The following 0 errors and 4 warnings occurred:
20:06:15 - Rate limit error occurred. Waiting for 1547 ms before retrying...
20:06:15 - Rate limit error occurred. Waiting for 1559 ms before retrying...
20:06:15 - Rate limit error occurred. Waiting for 1571 ms before retrying...
20:06:15 - Rate limit error occurred. Waiting for 1632 ms before retrying...
The import was successful.
All set! You can now run yarn start to see it in action.
Done in 103.40s.
But unfortunately βΒ following through with yarn start
results in an error
β― yarn start
yarn run v1.22.17
$ gatsby develop
success compile gatsby files - 1.148s
ERROR #10123 CONFIG
We encountered an error while trying to load your site's gatsby-config. Please
fix the error and try again.
Error: Contentful spaceId and the access token need to be provided. Received:
{}
- gatsby-config.js:18 Object.<anonymous>
/home/max/Development/GitHub/nullops-landing-page/gatsby-config.js:18:9
- loader:1103 Module._compile
node:internal/modules/cjs/loader:1103:14
- loader:1155 Object.Module._extensions..js
node:internal/modules/cjs/loader:1155:10
- loader:981 Module.load
node:internal/modules/cjs/loader:981:32
- loader:822 Function.Module._load
node:internal/modules/cjs/loader:822:12
- loader:1005 Module.require
node:internal/modules/cjs/loader:1005:19
- helpers:102 require
node:internal/modules/cjs/helpers:102:18
- get-config-file.ts:53 getConfigFile
[nullops-landing-page]/[gatsby]/src/bootstrap/get-config-file.ts:53:22
- index.ts:22 loadConfig
[nullops-landing-page]/[gatsby]/src/bootstrap/load-config/index.ts:22:50
- initialize.ts:180 initialize
[nullops-landing-page]/[gatsby]/src/services/initialize.ts:180:24
not finished load gatsby config - 0.112s
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The .env.development
file looks like it's not properly created.
β― cat .env.development
# To enable previews locally, uncomment the next line:
# CONTENTFUL_HOST="preview.contentful.com"
Cant use this template. Many issues.
When trying to use this themeusing the command npx gatsby new my-landing-page-site https://github.com/gatsbyjs/gatsby-starter-landing-page
after having both the Gatsby and Contentful CLIs install, it throws an error:
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module './lib/parse'
This landing page is brilliant.
Can you provide a high-level idea of how hard it would be to adapt to Strapi?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.