Skip to content

A simple Remix Stack with Typescript, Prisma, Tailwind, linting and prettier + HMR using remix-vite!

Notifications You must be signed in to change notification settings

amanolar94/electro-swing-stack

Repository files navigation

Remix Electro Swing Stack

The Remix Electro Swing Stack

Learn more about Remix Stacks.

npx create-remix@latest --template amanolar94/electro-swing-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

  • This step only applies if you've opted out of having the CLI install dependencies for you:

    npx remix init
  • Run the first build:

    npm run build
  • Start dev server:

    npm run dev

This starts your app in development mode, BUT with hot module replacement!

Relevant code:

This is just a hello world app that serves as a starter project.

Prisma ORM

To initialize prisma on an existing project you need to follow the steps bellow:

  1. run npx prisma init to initialize your prisma files.
  2. set your database url in the env file: DATABASE_URL="postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public"
  3. run npx prisma db pull to introspect your database.
  4. run npx prisma generate to read your schema and generate the Prisma Client Library.

This mini guide assumes that you use mysql and postgres on an already existing database. See the Set Up Prisma guide for more details and instructions on different db types.

Styling

The project uses Tailwind for styling. It is recommended to install an editor plugin (like the VSCode Tailwind CSS Intellisense plugin) to get auto complete and suggestion features.

Type Checking

This project uses TypeScript. It's recommended to get TypeScript set up for your editor to get a really great in-editor experience with type checking and auto-complete.

Linting

This project uses ESLint for linting. That is configured in .eslintrc.js.

Formatting

The project uses Prettier for auto-formatting along with the prettier-plugin-tailwindcss for formatting the classNames strings . It's recommended to install an editor plugin (like the VSCode Prettier plugin) to get auto-formatting on save.

About

A simple Remix Stack with Typescript, Prisma, Tailwind, linting and prettier + HMR using remix-vite!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published