Next.js is a framework that most notably allows you to write server-rendered React apps easily – amongst other cool things. This particular example rolls around using nextjs with React and Apollo graphql
- Apply this template to your Github
- Connect your GithubApp to KintoHub.
- Create a Website Block on KintoHub and select the Repository you just generated on your account.
- Select Dynamic Web App
- Set the name of your kinto block
Node.jsas the language and
13.1-alpineas the version
- Set the Build Command as
npm install && npm run build
- Set the Port as
You're now good to go! Click Create Website and then on your Master branch click
Build Latest Commit.
Once complete, Click Now click
Add To Project.
And now you're ready to go live Click
Deploy and once done -> you can view your website by clicking
Apollo is a GraphQL client that allows you to easily query the exact data you need from a GraphQL server. In addition to fetching and mutating data, Apollo analyzes your queries and their results to construct a client-side cache of your data, which is kept up to date as further queries and mutations are run, fetching more results from the server.
This example relies on graph.cool for its GraphQL backend.
You can do a lot with KintoHub and your deployed application. Some helpful links for next steps that you may consider with this project.