NestJS starter with Remix frontend. This repo is a yarn workspace with two packages: server and remix
- Remix js HMR
- Watch mode for NestJS
- One server for both frontend and backend
- Yarn workspace
yarnyarn dev- All
/apiroutes go to Nest js - All
/buildand/assetsis served by nest from/remix/public - All other routes go to Remix
- https://remix.run/docs/en/main/start/quickstart#bring-your-own-server
- https://remix.run/docs/en/main/guides/manual-mode
- https://github.com/remix-run/remix/blob/main/templates/express/server.js
Because we use nest to serve remix and both have a concept of assets, We are going to serve assets using our nest js server. But the asset should be placed in /remix/public/assets folder.