Skip to content

opchaves/app-remix-shadcn

Repository files navigation

Welcome to Remix + Vite + shadcn/ui!

📖 See the Remix docs and the Remix Vite docs for details on supported features.

Getting Started

Built in theme switcher

image

image

Development

Run the Vite dev server:

npm run dev

Deployment

First, build your app for production:

npm run build

Docker

Building Docker image:

docker build -t opchaves/remix-shadcn

Running the production docker image:

docker run --rm -p 3000:3000 -e SESSION_SECRET="s3cr3t" -e DB_PATH='./data' opchaves/remix-shadcn

Setup your environment:

cp .env.example .env

SESSION_SECRET='s3cr3t'
DB_PATH='/data' # a persistent volume
NODE_ENV='production'

Then run the app in production mode:

npm start

Now you'll need to pick a host to deploy it to.

DIY

If you're familiar with deploying Node applications, the built-in Remix app server is production-ready.

Make sure to deploy the output of npm run build and the server

  • server.js
  • build/server
  • build/client

Take a look at the provided Dockerfile for further details on how to configure a production environment.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published