Skip to content

Multi-tenant SaaS frontend for application users

Notifications You must be signed in to change notification settings

ivorscott/saas-client

Repository files navigation

SaaS-Client

This project has 3 repositories:

Overview

SaaS-Client is a multi-tenant SaaS frontend built in React and Typescript. It's a simple project management tool like Jira or Trello and communicates with the SaaS-Core backend: a collection of Go services.

Setup

  1. Checkout saas-infra and deploy the local infrastructure.

  2. Create your own .env file from the .env.samplefile. You'll need the shared_user_pool_id and shared_user_pool_client_id from terraform's output values.

    REACT_APP_USER_POOL_ID=[YOUR_SHARED_USER_POOL_ID_GOES_HERE]
    REACT_APP_USER_POOL_CLIENT_ID=[YOUR_SHARED_USER_POOL_CLIENT_ID_GOES_HERE]
    REACT_APP_STRIPE_KEY=[YOUR_STRIPE_KEY_GOES_HERE]
    REACT_APP_BACKEND=https://api.devpie.local/api
    
  3. Fetch the self-signed certificates generated from step 6 in the saas-core instructions. Copy them into the root of this project. They are used in the start command of the package.json file:

     "scripts": {
        "start": "HTTPS=true SSL_CRT_FILE=./devpie.local.pem SSL_KEY_FILE=./devpie.local-key.pem react-scripts start",
    
  4. Finally run:

    npm install
    npm start
  5. Navigate to https://devpie.local:3000

NOTE: Requests using localhost:3000 will be blocked by CORS!

About

Multi-tenant SaaS frontend for application users

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published