Skip to content

Commit

Permalink
Vercel deploy (#3)
Browse files Browse the repository at this point in the history
* fix vercel deploy issue

* vercel

* Versioning untracked files

* vercel

* vercel

* vercel

* vercelignore

* vercel ignore

* vercel

* vercel

* try to move zod to front end

* use npm types

* use type frontend
  • Loading branch information
Zafei-Erin authored Feb 21, 2024
1 parent a80c4f6 commit 0fe8265
Show file tree
Hide file tree
Showing 17 changed files with 110 additions and 120 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix: { dir: ["./backend", "./frontend", "smart_contract"] }
matrix: { dir: ["backend", "frontend", "smart_contract"] }

steps:
- name: Checkout repo
Expand Down
1 change: 0 additions & 1 deletion backend/decs.d.ts

This file was deleted.

147 changes: 79 additions & 68 deletions backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"@types/node": "^20.11.5",
"typescript": "^5.3.3",
"zod": "^3.22.4"
"@zafei/nft_mkp_types": "^0.0.1",
"typescript": "^5.3.3"
}
}
2 changes: 0 additions & 2 deletions backend/src/apitypes/index.ts

This file was deleted.

11 changes: 0 additions & 11 deletions backend/src/apitypes/nft/index.ts

This file was deleted.

19 changes: 0 additions & 19 deletions backend/src/apitypes/offer/index.ts

This file was deleted.

3 changes: 2 additions & 1 deletion backend/src/router/nfts/getNFTs.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { NextFunction, Request, Response, Router } from "express";

import { GetNFTRequest } from "@zafei/nft_mkp_types";
import { prisma } from "../../prisma";
import { GetNFTRequest } from "../../apitypes/nft";


const DEFAULT_PARAMS = {
take: 10,
Expand Down
3 changes: 2 additions & 1 deletion backend/src/router/offers/getOffersByNFT.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { NextFunction, Request, Response } from "express";
import { GetOffersRequest } from "@zafei/nft_mkp_types";
import { prisma } from "../../prisma";
import { GetOffersRequest } from "../../apitypes/offer";


const DEFAULT_PARAMS = {
skip: 0,
Expand Down
3 changes: 2 additions & 1 deletion backend/src/router/offers/patchOffer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { NextFunction, Request, Response } from "express";
import { prisma } from "../../prisma";
import { Offer } from "../../apitypes/offer";
import { Offer } from "@zafei/nft_mkp_types";


export const patchOffer = async (
req: Request,
Expand Down
3 changes: 1 addition & 2 deletions backend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@

/* Completeness */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
},
"include": ["decs.d.ts"]
}
}
5 changes: 4 additions & 1 deletion frontend/.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
VITE_API_URL=http://54.153.132.0:4000

# Etherscan
VITE_ETHERSCAN_API_KEY=KFVB3JV6A1YMXYXX16U3MB3YSM3PPSU5NY
# PINATA_JWT

# PINATA
VITE_JWT=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mb3JtYXRpb24iOnsiaWQiOiIxYjVlOWE4OC03YzJlLTQxM2YtYjRlYi1hNGI0NmNmY2FiODYiLCJlbWFpbCI6Ijg5NzY1OTc1MkBxcS5jb20iLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwicGluX3BvbGljeSI6eyJyZWdpb25zIjpbeyJpZCI6IkZSQTEiLCJkZXNpcmVkUmVwbGljYXRpb25Db3VudCI6MX0seyJpZCI6Ik5ZQzEiLCJkZXNpcmVkUmVwbGljYXRpb25Db3VudCI6MX1dLCJ2ZXJzaW9uIjoxfSwibWZhX2VuYWJsZWQiOmZhbHNlLCJzdGF0dXMiOiJBQ1RJVkUifSwiYXV0aGVudGljYXRpb25UeXBlIjoic2NvcGVkS2V5Iiwic2NvcGVkS2V5S2V5IjoiZThmNGE1MmI3ZTE5Y2ZjMWE5ZDQiLCJzY29wZWRLZXlTZWNyZXQiOiJmMjY1MjYxM2VmNmVmMmUwMTZiNjlmZjE2ZDc4ZmU1MzBmZGQzMGM1NWUwY2NkZjYwODM1YWE0NThkMjEzNmYwIiwiaWF0IjoxNzA0NDM2MDE4fQ.zMeHjaxw5m5nCusLADySUJ-l5JnMlJhdpgJbVXvP1jM

# mumbai network
Expand Down
7 changes: 7 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0fe8265

Please sign in to comment.