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
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
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.
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/