Git Product home page Git Product logo

saasbuilder's Introduction

SaaSBuilder Open Source Project README

Introduction

The SaaSBuilder project, provided by Omnistrate, is an open-source platform designed for service providers to deliver customizable SaaS solutions to end customers. It supports direct use for quick deployment or extensive customization through forking, catering to diverse provider needs. This adaptability saves significant time and costs in developing and launching SaaS offerings. Additionally, its open-source nature encourages community engagement, leading to continuous improvement, innovation, and security enhancements, benefiting from the collective expertise of developers worldwide.

Getting Started

To get started with the SaaSBuilder open-source project, begin by configuring your service on the Omnistrate Platform to make it ready for use. While familiarity with Next.js and Docker enhances your ability to customize the application, lack of expertise in these areas won't hinder your ability to deploy the SaaS Builder application with basic customizations. The process involves cloning the project's repository, setting up your development environment, and configuring the necessary environment variables to tailor the application to your requirements.

Pre-requisites

  • Before starting, ensure your SaaS offering is already configured on the Omnistrate platform; for guidance, refer to this instructional video here.
  • Make sure your service is marked public for customer access
  • Update your Omnistrate profile with essential service and SaasBuilder configurations, including your organization's description, support email, logo, and favicon URLs.

These details are crucial as they will be presented to customers accessing your application, enhancing brand visibility and support accessibility.

Alt text

Alt text

Service Provider Details Description
Organization Name Name of your organization
Organization Description Description of your organization
Organization Support Email Email address to which customers can reach out for support
Organization Logo URL Your organization's logo URL
Organization Favicon URL Your organization's favicon URL
Organization Privacy Policy Your organization's privacy policy for SaaSBuilder
Organization Terms of use Your organization's terms of use for SaaSBuilder

Customizations

Mandatory Customizations

  • For mandatory customizations, include configurations such as organization details (name, description, support email, logo URL, and favicon URL) directly in your Omnistrate account. These are already covered in the pre-requisites section
  • Additionally, customize your service plan details to include pricing, support options, descriptions for each plan, and relevant documentation links. These elements are crucial for presenting a clear, branded, and informative interface to your customers, ensuring they have all the necessary information to select and utilize your services effectively.

Alt text

Alt text

Optional Customizations

  • For deeper and more comprehensive customizations, optional modifications involve altering the source code itself. This approach allows for significant changes beyond the basic settings, enabling you to tailor the application's functionality, user interface, and overall user experience to better align with your brand and customer needs. Through code customizations, you have the freedom to implement new features, optimize existing workflows, or integrate with other services, providing a truly unique solution for your users.
  • When opting for deeper customizations by altering the source code, it's important to remember that maintaining your forked repository in sync with the master branch is your responsibility. This ensures that your customizations benefit from the latest updates, features, and security patches from the original project, helping maintain your application's integrity and performance over time.

Build and Run Locally

To build and run the SaaS Builder locally

  1. You'll need Node.js installed on your system. Download the latest LTS version (20.11.1 as of March 13, 2024) from https://nodejs.org/. Check the node version to confirm successful installation.
node --version
  1. Visit the Yarn website: Go to https://classic.yarnpkg.com/lang/en/docs/install/ and follow platform-specific instructions for your operating system (Linux, macOS, Windows) to install yarn classic (1.x). Check the yarn version (1.22.19 as of March 13, 2024) to confirm successful installation.
yarn --version
  1. Clone the Repository: Use Git to clone the repository to your local machine.
git clone https://github.com/omnistrate/saasbuilder.git
  1. Install dependencies with yarn
yarn install
  1. Configure .env.local: Create a .env.local file in the root directory. Populate it with necessary environment variables
Environment Variables Description
PROVIDER_EMAIL Service provider's Omnistrate email address
PROVIDER_PASSWORD Service provider's Omnistrate account password
YOUR_SAAS_DOMAIN_URL The secure domain URL where this application will be deployed eg. https://www.yourcloud.com. When working locally, it should be http://localhost:3000
MAIL_SMTP_HOST The the hostname or IP address of the mail service provider. Defaults to smtp.gmail.com
MAIL_SMTP_PORT The port to be used for creating the SMTP connection. Defaults to 587
MAIL_USER_EMAIL The email account to be used to authenticate to send mails (signup, reset password etc) to your customers. Check the following section for instructions to configure gmail account for sending out the emails.
MAIL_USER_PASSWORD The email account password
MAIL_FROM Gmail account from which emails will be sent (might be different than MAIL_USER_EMAIL). If this environment variable is not configured, the mails will be sent using MAIL_USER_EMAIL
GOOGLE_ANALYTICS_TAG_ID Google Analytics tag ID
  1. Run the development server:
yarn dev
  1. Open http://localhost:3000 with your browser to access the app locally

Deploy on Omnistrate Platform and configure your domain

Deploying on the Omnistrate Platform can follow two main paths: without code customizations and with code customizations.

With Code Customizations

For users looking to customize the SaaSBuilder, this option involves customizing the code after forking the SaaSBuilder repository. You'll make necessary changes, build and push your Docker image to a repository, update the Docker compose file to use your new image, and then create and launch your service on Omnistrate. This method allows for significant level of customization and flexibility however it is important to remember that maintaining your forked repository and keeping it in sync with the master branch is your responsibility.

  • After you have made all the customization code changes, you need to build a docker image and push it to your own repo. The dockerfile is already available, you could use the same.
docker build -t yourorg/yoursaasbuilder:1.0.0 .
docker push yourorg/yoursaasbuilder:1.0.0
  • Once you have pushed the docker image, you need to refer to it in your docker compose spec

  • After updating the docker compose spec, you will use it to create a service in Omnistrate. Rest of the steps are same as those defined in the "Without Code Customization" section.

Without Code Customizations

For users looking to deploy the SaaSBuilder quickly and without modifications, the straightforward approach involves using a predefined Docker compose yaml. This method facilitates the creation and launching of your service on the Omnistrate platform, utilizing the SaaSBuilder's existing setup and allowing for basic, provided customizations. It's an efficient path for rapid deployment, capitalizing on the built-in configurations of SaaSBuilder.

For a video guide covering all the below steps, you can follow it here. The manual steps are listed below -

  • Copy the contents of the saasbuilder-docker-compose.yaml

  • Login to Omnistrate and navigate to "Build Your SaaS" and "Your Compose Spec" tab

  • Paste the content of saasbuilder-docker-compose.yaml in the yaml editor and provide name, description (logo image is optional and wont be seen by your customers).

  • Choose your service model i.e. Provider Hosted, to create your service.

  • Follow the prompt to launch an instance of the SaaSBuilder Service.

  • Specify instance details: type, Omnistrate account and password, SMTP email and password, and hosting domain.

  • Post-creation, navigate to the "Network" tab, copy the cluster endpoint.

  • Access the SaaSBuilder App through the copied endpoint to reach the login page.

  • Once you have confirmed that you can access the SaaSBuilder app. You are ready to configure your domain.

    • Contact Omnistrate support and share your domain name that you want to use for the SaaSBuilder App along with the cluster endpoint for the SaaSBuilder App. Omnistrate team will be able to use this data and do the necessary configurations in Omnistrate Platform.

    • Login to your DNS provider/domain registrar portal (where you bought your domain). Find the DNS section for your domain and add two CNAME records as follows -

      • Type - CNAME
      • Name - @
      • Target - SaaSBuilder cluster endpoint
      • TTL - Leave as default or as suggested by your DNS provider

      and

      • Type - CNAME
      • Name - www
      • Target - SaaSBuilder cluster endpoint
      • TTL - Leave as default or as suggested by your DNS provider
  • Access your domain and confirm that SaaSBuilder app is now available on your domain.

Troubleshooting/FAQ

What should I do if I encounter a yarn install error?

Ensure your node and yarn versions meet the project's requirements. Try clearing your yarn cache with yarn cache clean and reinstalling dependencies.

How to configure Google Account for sending out emails?

Configuring Google Account for sending out emails is a two step process. First the account must have a 2-Step Verification enabled, and second, the app password needs to be set. If the Google Account you are using, already has 2-Step Verification configured, you may skip Step 1, and start with Step 2.

  • Step 1 - Enable 2-Step Verification

    1. Visit Your Google Account by navigating to https://myaccount.google.com and log in.
    2. Navigate to Security by clicking on "Security" in the left navigation menu.
    3. Scroll down to find the "How you sign in to Google" section and click on "2-Step Verification."
    4. Click on "Get Started."
    5. Follow the on-screen prompts to configure your 2-Step Verification method. Google offers various options like text messages, voice calls, or authenticator apps.

    Alt text

  • Step 2 - Create App Password

    1. Once 2-Step Verification is configured, follow the below instructions to create App Password.
    2. While still in the "How you sign in to Google" -> "2-Step Verification" section of your account security, locate and click "App Passwords"
    3. If for some reason you can't locate it, you can follow this link - https://myaccount.google.com/apppasswords make sure it is configured for the same Google Account, in case you have multiple Google Accounts opened in your browser.

    Alt text

    1. Provide name of the app, say SaasBuilder.
    2. Click "Create."
    3. Google will display a 16-character password something like "fasb nxpq lfnr chtn"
    4. Copy this password and remove in between spaces (e.g. fasbnxpqlfnrchtn) to use it instead of your regular Google Account password.

    Alt text

    1. Treat the app password like your regular password and store it securely.

How do I resolve "node version not compatible" errors?

Ensure that you have the correct Node.js version installed. SaaSBuilder requires Node.js version 20.11.1 as mentioned in the guide. You can check your current Node version by running node --version in your terminal. If the version is incorrect, download and install the correct version from Node.js official website.

What if my organization details do not appear correctly on the SaaSBuilder platform?

Double-check that you've correctly updated your Omnistrate profile with your organization's details, including the description, support email, logo, and favicon URLs. These details are crucial for presenting your organization correctly to customers. Refer to the provided instructional video for guidance on updating these details on the Omnistrate platform.

What should I do if I encounter issues deploying on the Omnistrate Platform?

Review the deployment steps outlined in the deploy section to ensure all steps were followed correctly. If deploying with code customizations, ensure your forked repository is up to date and your Docker image is correctly built and pushed. For issues specific to the Omnistrate Platform, contact Omnistrate support for assistance.

What to do if emails are not being sent to customers?

Verify the configuration of your Google Account for sending out emails, ensuring that 2-Step Verification is enabled and an App Password is generated and used. Double-check the MAIL_USER_EMAIL and MAIL_USER_PASSWORD environment variables to ensure they match your Gmail account and App Password.

How can I get more direct support or report an issue not covered by the README?

If the README or existing issues do not cover your problem, open a new issue on the GitHub repository with a detailed description, steps to reproduce, environment details, and any necessary screenshots or videos. For direct support, contact Omnistrate support with your query.

Contributing

We welcome contributions from the community! Here's how you can help:

  • Fork the Repository: Start by forking the project's repository.
  • Make Your Changes: Whether it's fixing a bug or adding a feature, make your changes in a separate branch.
  • Adhere to Coding Standards: Ensure your code matches the project's style and best practices.
  • Submit a Pull Request: Open a pull request with a clear description of your changes and any relevant issue numbers.

Support and Contact

If you need help or want to report an issue, please follow these steps:

  • Open an Issue: If you can't find an answer, open an issue on our GitHub repository with a detailed description of the problem along with reproducible steps, environment details and all necessary screenshots, videos.
  • Contact Us: For more direct support, contact Omnistrate support

We strive to create a welcoming and supportive community, so don't hesitate to reach out!

saasbuilder's People

Contributors

rushil95 avatar mohandholu43 avatar sharmaamits avatar nihalmohammed18 avatar nithishprem avatar pberton avatar kkgupta avatar dependabot[bot] avatar rumyantseva avatar

Stargazers

Ayush Somani avatar  avatar Ariel Shtul avatar NetGuy avatar Lewin Kelly avatar  avatar Conectando Net avatar Alok avatar

Watchers

 avatar Yuhui avatar

saasbuilder's Issues

Split server (email) and frontend

We must deploy the front end (stateless) and the email server separately for better scalability. This should not be an issue since there's no communication between them (the email server pools the fleet API for events).

Time should be localized

Describe the bug
The time displayed should be localized, showing the time in UTC is not really user friendly

image

Reset password is broken

Link points to localhost

Hello,

To reset your password, please click here http://localhost:3000/change-password?email=

Thanks

Services selector should display tiers as well

Is your feature request related to a problem? Please describe.
Switching between product tiers requires going back to the Service main page, and then selecting the tier.

Describe the solution you'd like
The Services selector could show the product tiers as a submenu, for example.

Screenshot 2024-03-20 at 9 39 57

yarn install deps warning

warning " > @material-ui/[email protected]" has incorrect peer dependency "react@^16.8.0 || ^17.0.0".
warning " > @material-ui/[email protected]" has incorrect peer dependency "react-dom@^16.8.0 || ^17.0.0".
warning "@material-ui/core > @material-ui/[email protected]" has incorrect peer dependency "react@^16.8.0 || ^17.0.0".
warning "@material-ui/core > @material-ui/[email protected]" has incorrect peer dependency "react-dom@^16.8.0 || ^17.0.0".
warning "@material-ui/core > @material-ui/[email protected]" has incorrect peer dependency "react@^16.8.0 || ^17.0.0".
warning "@material-ui/core > @material-ui/[email protected]" has incorrect peer dependency "react-dom@^16.8.0 || ^17.0.0".
warning "@material-ui/core > @material-ui/[email protected]" has incorrect peer dependency "react@^16.8.0 || ^17.0.0".
warning "@material-ui/core > @material-ui/[email protected]" has incorrect peer dependency "react-dom@^16.8.0 || ^17.0.0".
warning " > @mui/[email protected]" has unmet peer dependency "@mui/system@^5.4.1".
warning " > [email protected]" has incorrect peer dependency "react@^16.3.2 || ^17.0.0".
warning " > [email protected]" has incorrect peer dependency "react-dom@^16.3.2 || ^17.0.0".
warning " > [email protected]" has unmet peer dependency "prop-types@^15.6.0".
warning "recharts > [email protected]" has unmet peer dependency "prop-types@^15.6.0".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.