This project has 3 repositories:
- saas-core
- saas-client (this repo)
- saas-infra
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.
-
Checkout
saas-infra
and deploy thelocal
infrastructure. -
Create your own
.env
file from the.env.sample
file. You'll need theshared_user_pool_id
andshared_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
-
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",
-
Finally run:
npm install npm start
-
Navigate to https://devpie.local:3000
NOTE: Requests using localhost:3000 will be blocked by CORS!