Skip to content

sitecorelabs/developer-portal-ijs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sitecore logo in red background

Sitecore Developer Portal

Welcome to the Sitecore Developer Portal. This app was created to help you get started with Sitecore. The developer portal aims to bring all the Sitecore developer tools together in one place.

The Tech

The Sitecore developer portal is built with Next.js, Typescript, Tailwind CSS, and is hosted on Vercel. The app uses static site generation to create all the pages at build time. It also utilizes Incremental Static Regeneration (ISR) to automatically update the app when changes to page content are made. Much of the page content is written in Markdown and is converted to HTML at build time. Images that are used are managed in Sitecore DAM and are published to a CDN.

Build Prerequisites

Node.js

The developer portal is built with Next.js, so you'll need to have Node.js installed to build the project. You can find the latest version of Node.js here. We recommend using the LTS version of Node.js.

Environment Variables

The Sitecore developer portal incorporates a number of third party services to bring in content. For full functionality, you must create a .env.local file in the root of the project and add in the below environment variables.

The following variables should exist within the .env.local file:

YOUTUBE_API_KEY="An API key with YouTube Data API v3 access enabled"
TWITTER_BEARER_TOKEN="A bearer token from Twitter "

Note: The site will still function without the above keys. The components that require these environment variables will fail gracefully and not display on the pages.

Getting Started

  1. Install Node.js, we recommend the LTS version.
  2. Clone the repository.
  3. Inside the repository run npm install to install all the dependencies.
  4. Create a .env.local file in the root of the project and add the following environment variables:
YOUTUBE_API_KEY=""
TWITTER_BEARER_TOKEN=""
COOKIE_CONSENT_URL=

GTM_ID=
GTM_AUTH=
GTM_ENVIRONMENT=

COVEO_ACCESS_TOKEN=
COVEO_ORGANIZATION_ID=
COVEO_PIPELINE=
COVEO_SEARCH_HUB=

(For more information on populating environment variables see section Environment Variables above.)

  1. Run npm run dev to start the development server.
  2. Open the http://localhost:3000 in your browser to see the result!

Contributions

We are very grateful to the community for contributing bug fixes and improvements. We welcome all efforts to evolve and improve the Sitecore Developer Portal; read below to learn how to participate in those efforts.

Sitecore has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Contributing Guide

If you want to make changes to the code, follow these steps:

  1. Fork the Developer Portal Repo GitHub repo.
  2. Clone the forked repo to your local machine.
  3. Create a feature branch from main for your changes. e.g. git checkout -b my-feature-branch
  4. npm install
  5. npm run dev (to preview your changes locally)
  6. Make your changes (if you changes include images please use the public/images folder to store the image(s))
  7. Commit, push to your remote fork of the Developer Portal repo, then open a pull request (PR) to the main branch of the Developer Portal repo.

Your changes will be reviewed and merged if appropriate.

About

Open source repo for the Sitecore Developer Portal (https://developers.sitecore.com)

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.8%
  • CSS 2.2%
  • Other 1.0%