Skip to content

SELISE <blocks/> Construct is a ready-to-use application blueprint built to accelerate development with SELISE <blocks/>. It comes pre-integrated with core microservices, offering a scalable full-stack foundation with essential features, prebuilt modules, and practical use cases to streamline workflows and enforce best practices.

License

Notifications You must be signed in to change notification settings

SELISEdigitalplatforms/l3-react-blocks-construct

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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:
    • Choose either Sandbox or Production.
    • The page will expand to display the domain input field.
  4. (Optional) Enable Cookie Domain:
    • Check the box to see the cookie domain in use.
    • Follow the provided instructions for DNS settings.
  5. Click Create to initialize the project.
  6. 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.
      • 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.
    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:
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.

About

SELISE <blocks/> Construct is a ready-to-use application blueprint built to accelerate development with SELISE <blocks/>. It comes pre-integrated with core microservices, offering a scalable full-stack foundation with essential features, prebuilt modules, and practical use cases to streamline workflows and enforce best practices.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors 19