File tree Expand file tree Collapse file tree 2 files changed +12
-23
lines changed Expand file tree Collapse file tree 2 files changed +12
-23
lines changed Original file line number Diff line number Diff line change 1
- # React Router + Telefunc
1
+ # React Router + Telefunc Template
2
2
3
- Warning : dev mode works, but builds still fail at the moment .
3
+ A template for setting up [ Telefunc ] ( https://github.com/brillout/telefunc ) on React-Router .
4
4
5
- ## Getting Started
5
+ Telefunc introduces Remote Functions instead of APIs. Streamlining backend interactions significantly.
6
6
7
- ### Installation
8
7
9
- Install the dependencies:
8
+ ## Getting Started
10
9
11
10
``` bash
12
- npm install
13
- ```
11
+ npm install # Install the dependencies:
14
12
15
- ### Development
13
+ npm run dev # Start the development server with HMR
14
+ # Your application will be available at http://localhost:5173
16
15
17
- Start the development server with HMR:
18
-
19
- ``` bash
20
- npm run dev
16
+ npm run build # Build for production
17
+ npm run start # Start the production build
21
18
```
22
19
23
- Your application will be available at ` http://localhost:5173 ` .
24
-
25
- ## Building for Production
26
-
27
- Create a production build:
28
-
29
- ``` bash
30
- npm run build
31
- ```
20
+ Special thanks to @brillout for creating [ Telefunc] ( https://github.com/brillout/telefunc ) and troubleshooting the build issues.
Original file line number Diff line number Diff line change 5
5
"scripts" : {
6
6
"build" : " react-router build" ,
7
7
"dev" : " react-router dev" ,
8
- "start" : " react-router-serve ./build/server/index .js" ,
8
+ "start" : " react-router-serve ./build/server/index2 .js" ,
9
9
"typecheck" : " react-router typegen && tsc"
10
10
},
11
11
"dependencies" : {
30
30
"typescript" : " ^5.8.3" ,
31
31
"vite-tsconfig-paths" : " ^5.1.4"
32
32
}
33
- }
33
+ }
You can’t perform that action at this time.
0 commit comments