MCPcopy Index your code
hub / github.com/SELISEdigitalplatforms/blocks-construct-react

github.com/SELISEdigitalplatforms/blocks-construct-react @0.0.5

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.0.5 ↗ · + Follow
1,840 symbols 4,539 edges 551 files 84 documented · 5% updated 22d ago0.0.5 · 2025-09-22★ 3368 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

SELISE <blocks /> Constructᵇᵉᵗᵃ

SELISE <blocks/> Construct is a fully functional application blueprint designed to accelerate development with SELISE <blocks />. Pre-integrated with SELISE <blocks /> microservices, it offers a seamless full-stack foundation, complete with essential features, prebuilt modules, and practical use cases. Whether starting fresh or enhancing an existing project, SELISE Blocks Construct provides a scalable framework that streamlines workflows, ensures best practices, and maximizes SELISE `' capabilities.

Live Links

Other Links

Frontend

Backend


Setting Up Blocks Construct Using CLI

Get your local machine ready to set up a full-stack project integrated with SELISE <blocks /> services. Follow these short steps to complete the setup easily and start building right away.

1. Access SELISE Blocks Cloud

Open Blocks Cloud

  1. In your browser, go to SELISE <blocks /> Cloud.

Create an Account

  1. Click Sign Up and follow the instructions to create an account.
  2. Once registered, log in with your credentials.

Access the Console

  1. After logging in, you will land on the Console where you can manage projects.

2. Create a New Project

Before You Begin

Make sure you have a registered domain and access to its DNS settings.

Create Your Project

Set up a new project in the Cloud Console.

  1. In the Console, click Create New Project.
  2. Enter a unique project name.
  3. Select an environment:
  4. Choose either Sandbox or Production.
  5. The page will expand to display the domain input field.
  6. (Optional) Enable Cookie Domain:
  7. Check the box to see the cookie domain in use.
  8. Follow the provided instructions for DNS settings.
  9. Click Create to initialize the project.
  10. The Console will update to display your project.

3. Install SELISE Blocks CLI

Check System Requirements

Make sure you have the following tools installed:

Install SELISE Blocks CLI

Install the CLI globally to easily scaffold your projects.

npm install -g @seliseblocks/cli

If you encounter permission issues on Linux/macOS:

sudo npm install -g @seliseblocks/cli

Verify Installation

Check if the CLI was installed successfully.

blocks

To check the installed version:

blocks v

4. Create a New Project Locally

Initialize the Project

Use the CLI to set up your project structure and download the codebase.

blocks new <platform> <folder-name>
  • Replace <platform> with either web, mobile, or flutter.
  • Replace <folder-name> with your preferred local folder name.

For example, to create a web project in a folder named 'my-project', your command line should look like this blocks new web 'my-project'

Enter Project Details

After setup, the CLI will ask for:

  1. Project Name – Enter the project name you used earlier when creating the project on Blocks Cloud.
  2. Domain – The domain you registered earlier.
  3. Project Key – Copy it from your Project Dashboard.

Or,

Use one line command for web

blocks new web <project name> [--blocks-key] [--app-domain]

Examples:

blocks new web myproject --blocks-key abc123 --app-domain example.com

blocks new web myproject -k abc123 -d example.com


5. Start SELISE Blocks Construct

Navigate to the Project Directory

Move into your project's folder.

cd <folder-name>

Replace <folder-name> with your project's folder name.

Start the Application Locally

To start the application, run this command:

npm start

Run Using Your Application Domain

To simulate production locally:

  1. Update your machine’s hosts file
    Add a static entry to your hosts file to point your domain to localhost.
    See instructions.

  2. (Optional) Set up Captcha

Skip this if your app doesn’t require CAPTCHA.

i) To enable Google reCAPTCHA:

1. Visit the [Google reCAPTCHA Admin Console](https://www.google.com/recaptcha/admin/create).
   - Choose **reCAPTCHA v2** and the **"I'm not a robot"** checkbox option.
   - Add your domain (e.g., `example.com` or `localhost`).
 2. Copy your **Site Key** from the *Frontend Configuration* section.
 3. Copy your **Secret Key** from the *Backend Configuration* section.

ii) To enable  hCAPTCHA:

1. Visit the [hCAPTCHA Dashboard](https://dashboard.hcaptcha.com/login).
2. Copy your **Secret Key** from the "Secret Key" section.
3. Add your domain (e.g., `example.com`) to the **Site Key** section.



  > ✅ Example: If your domain is `dev-construct.seliseblocks.com`, make sure to add that exact domain seliseblocks.com hCaptcha

Then:

  • Go to Blocks Cloud > Services > CAPTCHA.
  • Click Add Configuration and paste the keys.
  • In your local project, open the .env file and add:

env REACT_APP_CAPTCHA_SITE_KEY=YourSiteKey REACT_APP_CAPTCHA_TYPE=YourCaptchaType // reCaptcha or hCaptcha Replace YourSiteKey with the Site Key you received from Google reCAPTCHA's or hCAPTCHA's frontend configuration.

To run the app locally:

npm run start:host

You should now see the login page.


6. Create a user and Log In

Create a User

You’ll need at least one user account to access the application.

  1. Invite a new user from the User Management Service in Cloud.
  2. The invited user will receive an email to activate the account.
  3. After activation, the user can set a password.

Log In to SELISE Blocks Construct

Open your browser: - Go to your application’s domain or use localhost if running locally. - Enter your credentials to log in.


Next Steps

You are now ready to build and extend your application with SELISE Blocks Construct.

Extension points exported contracts — how you extend this code

SharedPasswordStrengthCheckerProps (Interface)
* SharedPasswordStrengthChecker Component * * A visual component that displays password strength and requirement check
src/components/core/shared-password-strength-checker.tsx
TaskCardViewProps (Interface)
* TaskCardView Component * * A card-based (Kanban-style) task board for managing tasks within draggable columns. * Bu
src/pages/task-manager/task-card-view.tsx
LanguageContextType (Interface)
* Type definition for the Language Context. * Provides language-related state and functionality throughout the applicat
src/i18n/language-context.tsx
GraphQLRequest (Interface)
* GraphQL Client Module * * A GraphQL client utility that provides standardized methods for making GraphQL requests *
src/lib/graphql-client.ts
AuthState (Interface)
* useAuthState Hook * * A custom hook that provides authentication state with mounting status tracking. * It synchron
src/state/client-middleware.tsx
EmailListProps (Interface)
* EmailList Component * * A reusable component for displaying a list of emails with filtering, pagination, and selecti
src/features/email/component/email-list/email-list.tsx
ResendOTPProps (Interface)
* Custom hook to manage the countdown timer for OTP resend functionality. * * This hook tracks the remaining time for
src/hooks/use-resend-otp.ts
PermissionsProviderProps (Interface)
(no doc)
src/providers/permission-provider.tsx

Core symbols most depended-on inside this repo

cn
called by 177
src/lib/utils.ts
toast
called by 103
src/hooks/use-toast.ts
useToast
called by 52
src/hooks/use-toast.ts
handleError
called by 38
src/hooks/use-error-handler.ts
useGlobalMutation
called by 34
src/state/query-client/hooks.tsx
createMessage
called by 34
src/features/chat/data/chat.data.ts
useErrorHandler
called by 29
src/hooks/use-error-handler.ts
formatDate
called by 18
src/utils/custom-date.ts

Shape

Function 1,403
Interface 407
Method 14
Enum 10
Class 6

Languages

TypeScript100%

Modules by API surface

src/features/task-manager/services/task-manager.service.ts36 symbols
src/features/file-manager/components/common-filters.tsx29 symbols
src/features/task-manager/types/task-manager.types.ts26 symbols
src/features/task-manager/hooks/use-card-tasks.tsx26 symbols
src/features/big-calendar/components/modals/edit-event/edit-event.tsx25 symbols
src/pages/email/email.tsx23 symbols
src/features/big-calendar/components/modals/add-event/add-event.tsx21 symbols
src/components/blocks/data-table/data-table.tsx20 symbols
src/lib/https.ts19 symbols
src/features/file-manager/components/file-preview.tsx19 symbols
src/features/chat/components/chat/chat.tsx19 symbols
src/features/task-manager/hooks/use-task-manager.ts18 symbols

For agents

$ claude mcp add blocks-construct-react \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page