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
Refactor web app structure by updating Dockerfile for improved build process, adding server-side rendering support, and enhancing README with deployment instructions. Replace unused routes and components, and introduce new welcome page with logos. Update package dependencies and configurations for better organization.
A template for experimenting with React Router v7.
3
+
A modern, production-ready template for building full-stack React applications using React Router.
4
4
5
-
> ![NOTE]
6
-
> This template should not be used for production apps and is intended more for experimentation and demo applications. Please see the [default](https://github.com/remix-run/react-router-templates/tree/main/default) template for a more full-featured template.
5
+
## Features
6
+
7
+
- 🚀 Server-side rendering
8
+
- ⚡️ Hot Module Replacement (HMR)
9
+
- 📦 Asset bundling and optimization
10
+
- 🔄 Data loading and mutations
11
+
- 🔒 TypeScript by default
12
+
- 🎉 TailwindCSS for styling
13
+
- 📖 [React Router docs](https://reactrouter.com/)
7
14
8
15
## Getting Started
9
16
@@ -12,15 +19,55 @@ A template for experimenting with React Router v7.
12
19
Install the dependencies:
13
20
14
21
```bash
15
-
pnpm install
22
+
npm install
16
23
```
17
24
18
25
### Development
19
26
20
27
Start the development server with HMR:
21
28
22
29
```bash
23
-
pnpm run dev
30
+
npm run dev
24
31
```
25
32
26
33
Your application will be available at `http://localhost:3000`.
34
+
35
+
## Building for Production
36
+
37
+
Create a production build:
38
+
39
+
```bash
40
+
npm run build
41
+
```
42
+
43
+
## Deployment
44
+
45
+
### Docker Deployment
46
+
47
+
To build and run using Docker:
48
+
49
+
```bash
50
+
docker build -t my-app .
51
+
52
+
# Run the container
53
+
docker run -p 3000:3000 my-app
54
+
```
55
+
56
+
### DIY Deployment
57
+
58
+
If you're familiar with deploying Node applications, the built-in app server is production-ready.
59
+
60
+
Make sure to deploy the output of `npm run build`
61
+
62
+
```
63
+
├── package.json
64
+
├── package-lock.json (or pnpm-lock.yaml, or bun.lockb)
65
+
├── server.js
66
+
├── build/
67
+
│ ├── client/ # Static assets
68
+
│ └── server/ # Server-side code
69
+
```
70
+
71
+
## Styling
72
+
73
+
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.
0 commit comments