Stablocks Documentation
website·Indexed 30 days ago
https://learn.stablocks.comDocumentation for Stablocks, an open-source modular platform. Includes guides on setup and installation, developer introductions, and detailed module documentation for Essentials, CRM, Finance, Human Resources, Project Management, Marketing, and Sales.
What's inside Stablocks
- Stablocks is an all-in-one business management solution designed for freelancers, bootstrapped startups, and small businesses. It aims to replace the need for multiple fragmented SaaS products (such as separate tools for invoicing, project management, recruiting, and CRM) by providing a consolidated system that focuses on the core 20% of features that deliver 80% of the results.
Manage employee access using Roles
Roles in Stablocks are used to refine the specific modules and actions that employees can access. These roles are managed and assigned to employees by users with Administrator privileges.Understand User Types in Stablocks
User types provide broad classifications for users within the system. They serve as a high-level categorization, whereas roles are used to create more granular permissions specifically for employees. There are three available user types: External, Employee, and Admin.Deploy Stablocks to Netlify
Netlify can be used to host the Stablocks application to make it available to users. For detailed deployment steps, refer to the Netlify-specific deployment documentation.Contribute to the Stablocks open-source project
Stablocks is an open-source project that encourages developer contributions via its main GitHub repository. Developers can participate by reporting issues, submitting pull requests, or engaging in the discussions section to help improve the project.Main Repository: https://github.com/stablocks/stablocksContribute to Stablocks developer documentation
The Stablocks developer documentation is open for community improvements. If you find mistakes or unclear sections, you can contribute by opening an issue or submitting a pull request to the documentation repository.Docs Repository: https://github.com/stablocks/learnCreate a Supabase project for Stablocks
To set up the database for Stablocks, create a new project at app.supabase.io using a GitHub account. During project creation, you must provide a project name, a strong database password (which must be saved for later use), and select a region closest to your users. The Free Tier is sufficient for initial setup.Configure Supabase for Stablocks
Supabase serves as the database and authentication layer for Stablocks. To set it up:
- Create a new project at Supabase.
- Navigate to Authentication > Configuration > Settings and add your website URL.
- Ensure Enable Email Signup is checked and Disable Signup is unchecked.
Configure Third-Party SSO in Supabase
To enable single sign-on (SSO) for employees using Google or Azure (Microsoft):
- Obtain the necessary third-party credentials from the provider (Google or Azure).
- In the Supabase dashboard, go to Authentication > Settings > External OAuth Providers and add the credentials.
Manage Organization Settings permissions
Access to the Organization Settings section of the dashboard is restricted. Only users with the Admin role can access and update organization settings.Configure Supabase Authentication for Stablocks
To enable user logins for a Stablocks installation, navigate to Authentication > Configuration > Settings in the Supabase dashboard and apply the following settings:
- Site URL: Set this to the final URL of your Stablocks installation (e.g.,
https://stablocks.company.com). - Disable Signup: Ensure this is unchecked.
- Enable Email Signup: Ensure this is checked to allow email-based logins.
Stablocks uses passwordless authentication by default, sending login links to users' emails. Optionally, enable Enable email confirmations for additional security.
- Site URL: Set this to the final URL of your Stablocks installation (e.g.,
Retrieve Supabase connection variables for Stablocks deployment
Stablocks requires specific environment variables to connect to Supabase. These are found under the Settings (gear icon) menu in the Supabase dashboard:
- DATABASE_URL: Go to Settings > Database, scroll to the Connection string section, select the Nodejs tab, and append your database password to the string.
- SUPABASE_KEY: Go to Settings > API and copy the anon/public key from the Project API keys section.
- SUPABASE_URL: Go to Settings > API and copy the URL from the Configuration section.
- SUPABASE_JWT_SECRET: Go to Settings > API and copy the JWT Secret from the Configuration section.
# Example DATABASE_URL format postgresql://postgres:PaSsWoRd@db.abcdefghijklmnopqrst.supabase.co:5432/postgres