This is a Remix + FusionAuth boilerplate for anyone who wants to quickly spin up a SaaS using these technologies.
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. 🙇♂️
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!
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.
docker compose up -d
if you want to reset the FusionAuth system, run:
docker compose down -v
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.
npm run build
npm start
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/