You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: exercise/03-routing/README.md
+8
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,10 @@
1
1
# 03. Routing
2
2
3
+
Before doing any modification regarding the routes, remove Tailwind styling. The default Remix template comes with
4
+
Tailwind preconfigured.
5
+
6
+
Go to `app/tailwind.css` and remove all the content. We will put it again when we will need Tailwind, we promess!
7
+
3
8
Remix uses file based routing which means that the url is based on the file name. Each route is specified by a file located in `app/routes`. The route file needs at least a default exported function that returns a React Node.
4
9
5
10
For our pizza app, we need 2 pages: the first one is where the user specify the pizza size and toppings, the second is used to display a confirmation message.
@@ -17,6 +22,9 @@ export default function Index() {
17
22
}
18
23
```
19
24
25
+
Remove the `resources` variable, we won't need that. Also, you can remove the Remix logo images `public/logo-dark.png` and
Copy file name to clipboardexpand all lines: exercise/11-tests/README.md
+3-11
Original file line number
Diff line number
Diff line change
@@ -13,17 +13,9 @@ We'll need to add a test script to our package.json file.
13
13
},
14
14
```
15
15
16
-
Vitest needs a setup file and some browser polyfills to run our tests. We will create these files in a folder called `test` in the root of our project:
16
+
Vitest needs a setup file. We create the file in a folder called `test` in the root of our project:
Copy file name to clipboardexpand all lines: final/01-initialize-remix/progressive-pizza/README.md
+7-3
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
-
# Welcome to Remix + Vite!
1
+
# Welcome to Remix!
2
2
3
-
📖 See the [Remix docs](https://remix.run/docs) and the [Remix Vite docs](https://remix.run/docs/en/main/guides/vite) for details on supported features.
3
+
- 📖 [Remix docs](https://remix.run/docs)
4
4
5
5
## Development
6
6
7
-
Run the Vite dev server:
7
+
Run the dev server:
8
8
9
9
```shellscript
10
10
npm run dev
@@ -34,3 +34,7 @@ Make sure to deploy the output of `npm run build`
34
34
35
35
-`build/server`
36
36
-`build/client`
37
+
38
+
## Styling
39
+
40
+
This template comes with [Tailwind CSS](https://tailwindcss.com/) already configured for a simple default starting experience. You can use whatever css framework you prefer. See the [Vite docs on css](https://vitejs.dev/guide/features.html#css) for more information.
0 commit comments