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.
- SELISE
<blocks />Construct → construct.seliseblocks.com - SELISE
<blocks />Cloud → cloud.seliseblocks.com
- SELISE
<blocks />CLI (NPM) → @seliseblocks/cli - GitHub Repository → l3-react-blocks-construct
- SELISE
<blocks />CLI (NuGet) → SeliseBlocks.CLI - GitHub Repository → l3-net-blocks-consumer
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
- In your browser, go to SELISE
<blocks />Cloud.
- Click Sign Up and follow the instructions to create an account.
- Once registered, log in with your credentials.
- After logging in, you will land on the Console where you can manage projects.
2. Create a New Project
Make sure you have a registered domain and access to its DNS settings.
Set up a new project in the Cloud Console.
- In the Console, click Create New Project.
- Enter a unique project name.
- Select an environment:
- Choose either Sandbox or Production.
- The page will expand to display the domain input field.
- (Optional) Enable Cookie Domain:
- Check the box to see the cookie domain in use.
- Follow the provided instructions for DNS settings.
- Click Create to initialize the project.
- The Console will update to display your project.
3. Install SELISE Blocks CLI
Make sure you have the following tools installed:
- Node.js (v20.x or later) → Download Node.js
- NVM (Node Version Manager) → Install NVM
- Git → Download Git
Install the CLI globally to easily scaffold your projects.
npm install -g @seliseblocks/cliIf you encounter permission issues on Linux/macOS:
sudo npm install -g @seliseblocks/cliCheck if the CLI was installed successfully.
blocksTo check the installed version:
blocks v4. Create a New Project Locally
Use the CLI to set up your project structure and download the codebase.
blocks new <platform> <folder-name>- Replace
<platform>with eitherweb,mobile, orflutter. - 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'
After setup, the CLI will ask for:
- Project Name – Enter the project name you used earlier when creating the project on Blocks Cloud.
- Domain – The domain you registered earlier.
- Project Key – Copy it from your Project Dashboard.
Or,
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
Move into your project's folder.
cd <folder-name>Replace <folder-name> with your project's folder name.
To start the application, run this command:
npm startTo simulate production locally:
-
Update your machine’s hosts file
Add a static entry to your hosts file to point your domain to localhost.
See instructions. -
(Optional) Set up Captcha
Skip this if your app doesn’t require CAPTCHA.
i) To enable Google reCAPTCHA:
- Visit the Google reCAPTCHA Admin Console.
- Choose reCAPTCHA v2 and the "I'm not a robot" checkbox option.
- Add your domain (e.g.,
example.comorlocalhost).
- Copy your Site Key from the Frontend Configuration section.
- Copy your Secret Key from the Backend Configuration section.
ii) To enable hCAPTCHA:
- Visit the hCAPTCHA Dashboard.
- Copy your Secret Key from the "Secret Key" section.
- 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 hCaptchaThen:
- Go to Blocks Cloud > Services > CAPTCHA.
- Click Add Configuration and paste the keys.
- In your local project, open the
.envfile and add:
- Visit the Google reCAPTCHA Admin Console.
REACT_APP_CAPTCHA_SITE_KEY=YourSiteKey
REACT_APP_CAPTCHA_TYPE=YourCaptchaType // reCaptcha or hCaptchaReplace YourSiteKey with the Site Key you received from Google reCAPTCHA's or hCAPTCHA's frontend configuration.
To run the app locally:
npm run start:hostYou should now see the login page.
6. Create a user and Log In
You’ll need at least one user account to access the application.
- Invite a new user from the User Management Service in Cloud.
- The invited user will receive an email to activate the account.
- After activation, the user can set a password.
Open your browser:
- Go to your application’s domain or use
localhostif running locally. - Enter your credentials to log in.
You are now ready to build and extend your application with SELISE Blocks Construct.