Skip to content
/ saas Public

SaaS boilerplate with built-in multi-tenant support

License

Notifications You must be signed in to change notification settings

akoskm/saas

Repository files navigation

This is a Remix + FusionAuth boilerplate for anyone who wants to quickly spin up a SaaS using these technologies.

Demo

To host the demo, We need a DigitalOcean droplet with 2GB RAM for FusionAuth to run. You can make this happen by making a donation at https://github.com/sponsors/akoskm. 🙇‍♂️

Setup

⚠️ .env file

You should never commit your .env file to Git in a production project.

I added one to make it easier for You to get started with the project.

Make sure you replace the .env values before launching the app in production!

Network

You must change your /etc/hosts file to test multi-tenant sign-up and sign-in. Add the following entries:

127.0.0.1       localhost       saasbp.io
127.0.0.1       localhost       example.saasbp.io

With this, you can reach the site at http://saasbp.io:3000 and http://example.saasbp.io:3000, which is necessary to test the multi-tenant sign-up and sign-in.

Development

FusionAuth

docker compose up -d

if you want to reset the FusionAuth system, run:

docker compose down -v

FusionAuth Docs

Remix

npm i
npm run dev # To debug the app run this command in Run and Debug > JavaScript Debug Terminal, no other config needed

This starts your app in development mode, rebuilding assets on file changes.

Remix Docs

Deployment

npm run build
npm start

DIY

If you're familiar with deploying node applications, the built-in Remix app server is production-ready.

Make sure to deploy the output of remix build

  • build/
  • public/build/

Screenshots

Sign Up

Xnapper-2023-11-30-12 20 48

Sign in

image

User area

image

Sponsor this project

 

Languages