Opinionated Remix Starter Template
This is an opinionated remix starter template with the following opinions
- 💻 Express adapter
- 🎨 TailwindCSS
- 🧑💼 Node version manager - nvm
- 🦋 Prettier
To start a remix project with this template, run
npx create-remix@latest --template iamzee/remix-starter
This project uses nvm as a node version manager. Before running any npm command, make sure you are in the correct node environment (specified in .nvmrc
file)
To install the node with the version specified in .nvmrc
, run:
nvm install
This will automatically detect the .nvmrc file and install the specified node version.
Now, to use that node version, run:
nvm use
You can verify the node version, by running:
node --version
Start the Remix development asset server and the Express server by running:
npm run dev
This starts your app in development mode, which will purge the server require cache when Remix rebuilds assets so you don't need a process manager restarting the express server.
First, build your app for production:
npm run build
Then run the app in production mode:
npm start
Now you'll need to pick a host to deploy it to.
If you're familiar with deploying express applications you should be right at home just make sure to deploy the output of remix build
build/
public/build/
- Add light/dark mode toggle