Giter VIP home page Giter VIP logo

dxp-proto's Introduction

dxp

Starter site for Kenvue Digital Experience Platform.

Local Development

Install, Build, Serve

npm i && npm run build && npm run serve Visit site on localhost:9000

Running Stackbit

In one terminal npm run dev Wait for dev site to load on localhost:8000 In a second terminal npm run stackbit Visit localhost:8092/_stackbit

Note you can also run stackbit without running the dev site (of course you won't get the preview or inline editing, but can be useful for testing models in the sidebar).

Running Bodiless Editor

Comment out BODILESS_DISABLE_EDITOR=1 in .env.site npm run edit from sites/__dxp__

Be sure not to commit the change to .env.site

Deployment

Vercel

Import the GitHub repo and provide the following settings:

  • Framework Preset: Other
  • Build command cd ../.. && npm run build
  • Install command npm ci --prefix ../..
  • Root Directory sites/__dxp__
  • Output Directory: ./public

Netlify / Gatsby Cloud

Import the GitHub repo and provide the following setting:

  • Gatsby Root Folder: sites/__dxp__

Note that Gatsby will scan gatsby-config.js and suggest that you set some environment variables. These must be removed from the "Environment Variables" section. Not removing them will cause them to have empty values which override the actual values from .env.site.

Stackbit

Create new project -> Create from Github -> Use my repository Leave all settings at defaults. On second screen, delete all env vars.

Stackbit will create a preview branch in the repository, and Studio will always run on this branch. It must be kept manually in sync with main.

dxp-proto

dxp-proto

dxp-proto's People

Contributors

speediing avatar

Watchers

 avatar

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.