Indie Thin Stack screenshot

Indie Thin Stack

Author Avatar Theme by Alvinthen
Updated: 27 May 2022
6 Stars

The Remix Stack for deploying to Fly or simple Node server with authentication, testing, linting, formatting, etc.

Categories

Overview

Remix Indie Thin Stack is a lightweight Remix app that is designed to be used without the data layer. It is particularly useful for integrating with headless CMS. The stack includes various features and tools that facilitate app deployment, authentication, styling, testing, and more.

Features

  • Fly app deployment with Docker
  • Healthcheck endpoint for Fly backups region fallbacks
  • GitHub Actions for deploy on merge to production and staging environments
  • Email/Password Authentication with cookie-based sessions
  • Styling with Tailwind
  • End-to-end testing with Cypress
  • Local third-party request mocking with MSW
  • Unit testing with Vitest and Testing Library
  • Code formatting with Prettier
  • Linting with ESLint
  • Static Types with TypeScript

Installation

To install the Remix Indie Thin Stack, follow these steps:

  1. Start the dev server:
$ yarn start

This command starts the app in development mode and automatically rebuilds assets whenever there are file changes.

  1. Create a new user with sample data:

Email: rachel@remix.run Password: racheliscool

Relevant code files for different functionalities:

  • User creation, login, and logout: ./app/models/user.server.ts
  • User sessions and verification: ./app/session.server.ts
  • Note creation and deletion: ./app/models/note.server.ts

Summary

The Remix Indie Thin Stack is a versatile and configurable app stack that offers a lightweight alternative for developers who want to integrate Remix with headless CMS. It provides convenient features for app deployment, authentication, styling, testing, and more. The stack can be customized and modified according to specific requirements by forking the repository and making changes. With detailed installation instructions and relevant code snippets provided, developers can quickly get started with building apps using this stack.