Skip to content

Commit

Permalink
Changes to be committed:
Browse files Browse the repository at this point in the history
	modified:   client/package.json
	modified:   client/src/pages/home.tsx
	modified:   client/src/pages/products/details.tsx
	modified:   client/src/pages/products/index.tsx
	modified:   client/vite.config.ts
  • Loading branch information
Thith-thith committed Aug 7, 2023
1 parent d11efa8 commit 61b929c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"start": "vite",
"dev": "vite",
"build": "vite build",
"serve": "vite preview"
"serve": "vite preview",
"db": "npx json-server ./data/db.json -p 60011"
},
"license": "MIT",
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export const LatestProducts: Component<{}> = () => {

export const MainProducts: Component<{}> = () => {
const fetchData = async () => {
const res = await fetch("http://localhost:3000/CoreProducts");
const res = await fetch("http://localhost:60011/CoreProducts");
return res.json();
};
const [coreProducts] = createResource(fetchData);
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/products/details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type Product = {
};

const fetchProduct = async (id: string) => {
const res = await fetch(`http://localhost:3000/CoreProducts/` + id);
const res = await fetch(`http://localhost:60011/CoreProducts/` + id);
return res.json();
};
const ProductDetail: Component<{}> = (props) => {
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/products/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, For, Show, createResource } from "solid-js";
import Cards from "../../components/cards/Cards";
const fetchData = async () => {
const res = await fetch("http://localhost:3000/CoreProducts");
const res = await fetch("http://localhost:60011/CoreProducts");
return res.json();
};

Expand Down
2 changes: 1 addition & 1 deletion client/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import solidPlugin from "vite-plugin-solid";
export default defineConfig({
plugins: [solidPlugin()],
server: {
port: 8000,
port: 60011,
},
build: {
target: "esnext",
Expand Down

0 comments on commit 61b929c

Please sign in to comment.