Build an SMS demo

Build an SMS demo

A Hello World tutorial to quickly get familiar with Magic. 🚀

A SMS application can be bootstrapped with make-magic, an easy-to-use CLI tool that generates a fully-working application with Magic auth built-in.

npx make-magic --project-name my-sms-app --template hello-world-sms


make-magic supports the following options for every template:

  • -project-name, -p - The name of your project. A top-level directory will be created from this value. If omitted, the project name will be prompted for interactively.
  • -template, -t - The base template to use. If omitted or invalid, the template will be prompted for interactively. Templates are being added all the time, so if you're curious to try something new, simply use npx make-magic without any flag arguments and you'll asked to choose a template during the flow.
  • -branch, -b - The remote Git branch of make-magic from which to source templates. Only advanced use-cases should require this option, or if you're curious to try an upcoming template before its mainstream release.
  • -help, -h - When this flag is present, documentation will be printed to the console (no project is generated). You can pair this the -template option to see template-specific options and documentation.

#Interactive Flow

Using npx make-magic without flag arguments defaults to an interactive experience. Different templates may request different data to get your project off the ground. For example, the hello-world-social-login template requires a list of social login providers. You can define the providers for your app using the --social-login flag, or you can let the CLI prompts guide you. Use the --help flag and --template flag together to learn more about template-specific options.

Build an SMS demo