-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #273 from arekmaz/examples-remix
add remix example
- Loading branch information
Showing
15 changed files
with
13,218 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
node_modules | ||
|
||
/.cache | ||
/build | ||
/public/build | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# templates/unstable-vite-express | ||
|
||
⚠️ Remix support for Vite is unstable and not recommended for production. | ||
|
||
📖 See the [Remix Vite docs][remix-vite-docs] for details on supported features. | ||
|
||
## Setup | ||
|
||
```shellscript | ||
npx create-remix@latest --template remix-run/remix/templates/unstable-vite-express | ||
``` | ||
|
||
## Run | ||
|
||
Spin up the Express server as a dev server: | ||
|
||
```shellscript | ||
npm run dev | ||
``` | ||
|
||
Or build your app for production and run it: | ||
|
||
```shellscript | ||
npm run build | ||
npm run start | ||
``` | ||
|
||
## Customize | ||
|
||
Remix exposes APIs for integrating Vite with a custom server: | ||
|
||
```ts | ||
import { | ||
unstable_createViteServer, | ||
unstable_loadViteServerBuild, | ||
} from "@remix-run/dev"; | ||
``` | ||
|
||
In this template, we'll use Express but remember that these APIs can be used with _any_ Node-compatible server setup that supports standard middleware. | ||
|
||
[remix-vite-docs]: https://remix.run/docs/en/main/future/vite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { | ||
Links, | ||
LiveReload, | ||
Meta, | ||
Outlet, | ||
Scripts, | ||
ScrollRestoration, | ||
} from "@remix-run/react"; | ||
|
||
import "./tailwind.css"; | ||
|
||
export default function App() { | ||
return ( | ||
<html lang="en"> | ||
<head> | ||
<meta charSet="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<Meta /> | ||
<Links /> | ||
</head> | ||
<body> | ||
<Outlet /> | ||
<ScrollRestoration /> | ||
<Scripts /> | ||
<LiveReload /> | ||
</body> | ||
</html> | ||
); | ||
} |
Oops, something went wrong.
de9cbdf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
evolu – ./
evolu-git-main-evolu.vercel.app
evolu.vercel.app
evolu-evolu.vercel.app
evolu.dev
www.evolu.dev