8000 GitHub - giorgiof2/jazz-stack: The Remix Stack for deploying to Fly with SQLite, authentication, testing, linting, formatting, etc.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

The Remix Stack for deploying to Fly with SQLite, authentication, testing, linting, formatting, etc.

Notifications You must be signed in to change notification settings

giorgiof2/jazz-stack

 
 

Repository files navigation

Remix Indie Stack

The Remix Jaxx Stack

Learn more about Remix Stacks.

npx create-remix --template giorgiof2/jazz-stack

What's in the stack

Not a fan of bits of the stack? Fork it, change it, and use npx create-remix --template your/repo! Make it your own.

Development

  • Start dev server:

    npm run dev

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

Deployment

This Remix Stack comes with two GitHub Actions that handle automatically deploying your app to production and staging environments.

Prior to your first deployment, you'll need to do a few things:

  • Install Fly

  • Sign up and log in to Fly

    fly auth signup
  • Create two apps on Fly, one for staging and one for production:

    fly create indie-stack-template
    fly create indie-stack-template-staging
  • Create a new GitHub Repository

  • Add a FLY_API_TOKEN to your GitHub repo. To do this, go to your user settings on Fly and create a new token, then add it to your repo secrets with the name FLY_API_TOKEN.

  • Add a SESSION_SECRET to your fly app secrets, to do this you can run the following commands:

    fly secrets set SESSION_SECRET=$(openssl rand -hex 32) --app indie-stack-template
    fly secrets set SESSION_SECRET=$(openssl rand -hex 32) --app indie-stack-template-staging

    If you don't have openssl installed, you can also use 1password to generate a random secret, just replace $(openssl rand -hex 32) with the generated secret.

  • Create a persistent volume for the sqlite database for both your staging and production environments. Run the following:

    fly volumes create data --size 1 --app indie-stack-template
    fly volumes create data --size 1 --app indie-stack-template-staging

Now that every is set up you can commit and push your changes to your repo. Every commit to your main branch will trigger a deployment to your production environment, and every commit to your dev branch will trigger a deployment to your staging environment.

Formatting

We use Prettier for auto-formatting in this project. It's recommended to install an editor plugin (like the VSCode Prettier plugin) to get auto-formatting on save. There's also a npm run format script you can run to format all files in the project.

About

The Remix Stack for deploying to Fly with SQLite, authentication, testing, linting, formatting, etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 69.0%
  • CSS 27.0%
  • JavaScript 3.9%
  • Shell 0.1%
0