Skip to main content

Installation

CommunityJS is available as an npm package.

First install peer dependencies needed to make the library work:

Dependencies

npm install @mui/material @mui/icons-material @emotion/react @emotion/styled react-intl

Based on which package you want to install proceed as follows:

Install api-services:

npm install @selfcommunity/types @selfcommunity/utils @selfcommunity/api-services

Install react-core:

npm install @selfcommunity/api-services @selfcommunity/react-i18n @selfcommunity/types @selfcommunity/utils @selfcommunity/react-core

Install react-i18n:

npm install @selfcommunity/react-i18n

Install react-templates:

npm install @selfcommunity/react-i18n @selfcommunity/react-core @selfcommunity/react-templates

Install react-theme-default:

npm install @selfcommunity/react-core @selfcommunity/react-ui @selfcommunity/react-theme-default

Install react-ui:

npm install @selfcommunity/api-services @selfcommunity/react-core @selfcommunity/react-i18n @selfcommunity/types @selfcommunity/utils @selfcommunity/react-ui