GithubHelp home page GithubHelp logo

uniformdev / sitecore-jss-nextjs-starterkit Goto Github PK

View Code? Open in Web Editor NEW
28.0 14.0 11.0 1.75 MB

Jamstack for Sitecore JSS using Next.js with Uniform SDK

Home Page: https://docs.uniform.dev/sitecore/deploy/getting-started/sitecore-jss-nextjs-tutorial

JavaScript 68.75% CSS 31.25%
jamstack sitecore sitecore-jss nextjs nextjs-starter netlify uniform

sitecore-jss-nextjs-starterkit's Introduction

Uniform - Sitecore JSS - Next.js starter kit

This repo contains both the starter kit with content items and required configuration files.

You can also use this kit to start a vanilla project, simply remove everything from /src/components and adjust the Sitecore site name from uniform-jss-kit to whatever you want and get cracking.

Docs

  1. Tutorial for Deploy part of this starter kit

  2. Uniform for Sitecore docs

Pre-requisites

  1. Sitecore 9.x-10.x instance available with Sitecore JSS installed and configured
  2. "Uniform for Sitecore" installed and configured on your Sitecore instance. Check out the docs.
  3. Install the Sitecore package with items from /sitecore/App_Data/packages folder.

Getting started with the app

Check out official docs for more scenarios and tutorial.

TL;DR version

  1. Add NPM_TOKEN environment variable with the value we provided you with.
  2. npm install
  3. jss setup and follow the steps Sitecore JSS requires and use the API key you created during the Pre-requisites step above.
  4. jss deploy config to deploy the application config from /sitecore/config folder into your Sitecore instance.
  5. Configure .env file according to your environment specifics (see .env-example file).
  6. npm run build to build the app.
  7. npm run dev to start development server.
  8. npm start to start the app in connected mode.
  9. npm run export to run static export.

Note: Remove or update the robots.txt if you going to use this kit in production

sitecore-jss-nextjs-starterkit's People

Contributors

adamconn avatar alenpelin avatar alexshyba avatar aweber1 avatar sergey-oleynik avatar uniformdevbot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sitecore-jss-nextjs-starterkit's Issues

Build errors due to typescript

Can you please specify the correct versions of react, react-dom and types/react, types/react-dom to be used in sitecore JSS NextJs project, we are facing issues currently with Vercel build.
image

npm script `deploy` conflicts with `jss deploy` command

The deploy script defined in package.json prevents jss deploy from running as the JSS CLI gives precedence to commands defined in package.json. Therefore, running jss deploy in this case is the equivalent of npm run deploy.

Theoretically, this seems like something that should be changed in the JSS CLI, but we can work around it by renaming our deploy script.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.