Skip to content

Commit 92f640e

Browse files
committed
improve app readmes and component name
1 parent c813cdd commit 92f640e

4 files changed

Lines changed: 19 additions & 21 deletions

File tree

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
2-
```
3-
go mod init api-golang
4-
go get -u github.com/gin-gonic/gin
5-
go get -u github.com/lib/pq
6-
```
7-
8-
9-
```
10-
go run src/main.go
1+
```bash
2+
mkdir go-workspace
3+
export GOPATH=$PWD/go-workspace
4+
go mod download
5+
go run main.go
116
```
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
```
2-
npm init
3-
npm install express pg
4-
```
5-
6-
```
7-
node src/index.js
1+
```bash
2+
nvm ls
3+
nvm use node 19.4
4+
npm install
5+
npm run dev
86
```
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
```
22
npm create vite@latest
3-
npm i @tanstack/react-query axios
43
```
54

5+
```
6+
nvm ls
7+
nvm use node 19.4
8+
npm install
9+
npm run dev
10+
```

05-example-web-application/client-react/src/App.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import './App.css'
1010

1111
const queryClient = new QueryClient();
1212

13-
function Example(props) {
13+
function CurrentTime(props) {
1414
const { isLoading, error, data, isFetching } = useQuery({
1515
queryKey: [props.api],
1616
queryFn: () =>
@@ -37,8 +37,8 @@ export function App() {
3737
return (
3838
<QueryClientProvider client={queryClient}>
3939
<h1>Hey Team! 👋</h1>
40-
<Example api="/api/golang/"/>
41-
<Example api="/api/node/"/>
40+
<CurrentTime api="/api/golang/"/>
41+
<CurrentTime api="/api/node/"/>
4242
<ReactQueryDevtools initialIsOpen={false} />
4343
</QueryClientProvider>
4444
);

0 commit comments

Comments
 (0)