How To:s
Here is a collection of posts on different aspects of the SAAS starter kits and how to achieve various tasks.
Out of the box, every user created in the system also gets a personal account. But let’s say that you want to create a resource that can be accessed by many users. In this post, I will show you how the teams, accounts, memberships and invitations all work together.
Read PostIn some cases, you want to turn off the possibility to signup and create an account. Most likely, you want to have the page live during development. In this tutorial I will show you how to turn off Signups and the admin section in production only so you can build out your application and not worrying about exposing not finished sections to users.
Read PostCreate a resource with the custom generator
2022-10-17Phoenix has some generators built in. But in my opinion, they can be improved. Especially when it is used with the SAAS Starter Kit. So, the SAAS Starter Kit comes with a generator designed to save time, especially when you generate a resource that belongs to another resource.
Read PostPoint a domain to Phoenix on Fly.io
2022-10-13Fly.io gives you a temporary domain so you can access your site during development. But sooner or later, you want to point a real domain to your Phoenix site. This post goes through how you can do that in a few simple steps.
Read PostCollect pre signups emails
2022-10-13One of the most import thing when you start a new application and want to validate your idea before building to much is to deploy a landing page and collect email signups. You can install a snippet from one of the email marketing providers but in this tutorial I will show you how you can build and use a reusable LiveView signup component.
Read PostDeploy to Fly.io
2022-10-13Fly.io is a great hosting company that lets you deploy your Phoenix application for free. And when you scale out of the free plan you can easily upgrade to the paid tiers. They also let you scale to servers around the world so you can always be close to your users. The SAAS Starter Kit can more or less easily be deployed to Fly with just a few easy steps. First of all, make sure to get your https://fly.io/ account and then we are ready to go.
Read PostRegister User and Personal Account
2022-10-13The SAAS Starter kit comes with a teams setup out of the box. That means that a user can belong to several accounts instead of just one. There is also a concept of a personal account that can only have the user that created it as a team member. The creation of a personal account happens when the user registers. The user registration functionality is based on the built in PhxGenAuth-generator that is build in with Phoenix. That means that the functionality closely mirrors what you expect if you have used that before.
Read PostInstall or Update to Elixir 1.14
2022-10-12The recommended way to install Elixir, and it also supports Erlang and Node, is to use ASDF. That is a tool version manager that allows you to run different versions of Elixir and Erlang on the same computer. https://asdf-vm.com/
Read PostSetup Github Actions
2022-10-10The SAAS Starter Kit comes with Github action from the start. That means that there are already a file in the boilerplate that will run tests on Github as soon as your project is pushed. It provides a very easy way to setup and get started with a continuous integration and continuous delivery (CI/CD) process that allows you to automate your build, test, and deployment pipeline.
Read PostCreate the first administrator
2022-06-26The SAAS Starter Kit comes with an administration (admin) area. This Post shows you how to get create the first admin and login.
Read PostInstall and setup SAAS Starter kit
2022-06-23After you have downloaded the SAAS Starter kit package, thare are some initial installation instructions on how to set it up.
Read Post