Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.

Commit f0eaef9

Browse files
authored
Merge pull request #14 from riseon-dev/feature/11/frontend-template-and-sign-in
frontend templates + connect wallet + deploy pipelines
2 parents cbe806d + ba19288 commit f0eaef9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+15414
-3413
lines changed

.dockerignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
.git
3+
.gitignore
4+
*.md
5+
dist

.eslintignore

Lines changed: 0 additions & 7 deletions
This file was deleted.

.github/workflows/merged-main.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build Docker Image and Push to Docker Hub
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
8+
jobs:
9+
docker:
10+
runs-on: ubuntu-latest
11+
steps:
12+
-
13+
name: Set up QEMU
14+
uses: docker/setup-qemu-action@v3
15+
-
16+
name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v3
18+
-
19+
name: Login to Docker Hub
20+
uses: docker/login-action@v3
21+
with:
22+
username: ${{ secrets.DOCKERHUB_USERNAME }}
23+
password: ${{ secrets.DOCKERHUB_TOKEN }}
24+
-
25+
uses: actions/checkout@v4
26+
name: Checkout project
27+
with:
28+
fetch-depth: 2
29+
-
30+
name: Build and push
31+
uses: docker/build-push-action@v5
32+
with:
33+
context: .
34+
file: Dockerfile
35+
target: web
36+
push: true
37+
tags: n3m6/web:latest
38+
-
39+
name: Build and push
40+
uses: docker/build-push-action@v5
41+
with:
42+
context: .
43+
file: Dockerfile
44+
target: api
45+
push: true
46+
tags: n3m6/api:latest
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI Pull Request Builds
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
types: [opened, synchronize]
8+
9+
jobs:
10+
build:
11+
name: Build and Test
12+
timeout-minutes: 15
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Check out code
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 2
20+
21+
- uses: pnpm/action-setup@v4
22+
with:
23+
version: 9.15.4
24+
25+
- name: Setup Node.js environment
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: 22
29+
cache: 'pnpm'
30+
31+
- name: Install dependencies
32+
run: pnpm install
33+
34+
- name: Build
35+
run: pnpm build
36+
37+
- name: Test
38+
run: pnpm test

.gitignore

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ dist
102102

103103
# vuepress v2.x temp and cache directory
104104
.temp
105-
.cache
106105

107106
# Docusaurus cache and generated files
108107
.docusaurus
@@ -142,13 +141,10 @@ vendor/
142141
/out/
143142
coverage/
144143

145-
*.tsbuildinfo
146-
.eslintcache
147144
*.node
148145
graph*.html
149146

150147
# not pnpm
151-
.pnp.*
152148
.yarn/*
153149

154150
# generated by cargo xtask publish
@@ -157,13 +153,9 @@ artifacts
157153
.turbo
158154
.vercel
159155
.DS_Store
160-
.env
161-
vendor/
162156
data
163-
*.log
164157
todos.md
165158
.store
166-
.npmrc
167159
!examples/**/.npmrc
168160
.idea
169161
cli/libturbo.a
@@ -196,9 +188,21 @@ file_descriptor_set.bin
196188

197189
## Hardhat
198190
cache
199-
artifacts
200191
typechain
201192
typechain-types
202-
coverage
203193
coverage.json
204194
ignition/deployments/chain-31337
195+
196+
## Frontend
197+
pnpm-debug.log*
198+
dist-ssr
199+
*.local
200+
201+
# Editor directories and files
202+
.vscode/*
203+
!.vscode/extensions.json
204+
*.suo
205+
*.ntvs*
206+
*.njsproj
207+
*.sln
208+
*.sw?

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
save-exact = true
2+
auto-install-peers = true

Dockerfile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
FROM node:22.11-bookworm-slim AS builder
2+
3+
# Copy source
4+
COPY . /app
5+
6+
# Create app directory
7+
WORKDIR /app
8+
9+
# Setup PNPM
10+
ENV PNPM_HOME="/pnpm"
11+
ENV PATH="$PNPM_HOME:$PATH"
12+
13+
# Install
14+
RUN npm install -g corepack@latest pnpm@latest
15+
RUN corepack enable
16+
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
17+
18+
# Build
19+
RUN pnpm build
20+
21+
# Deploy apps
22+
RUN pnpm deploy --filter=api --prod /prod/api
23+
RUN pnpm deploy --filter=web --prod /prod/web
24+
25+
26+
FROM builder AS api
27+
COPY --from=builder /prod/api /prod/api
28+
WORKDIR /prod/api
29+
EXPOSE 5000
30+
CMD [ "pnpm", "start:prod" ]
31+
32+
FROM nginx:stable AS web
33+
COPY --from=builder /prod/web /usr/share/nginx/html
34+
EXPOSE 80
35+
CMD ["nginx", "-g", "daemon off;"]

contracts/.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
save-exact=true
2+
auto-install-peers=true

contracts/package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"devDependencies": {
2020
"@nomicfoundation/hardhat-chai-matchers": "2.0.8",
2121
"@nomicfoundation/hardhat-ignition": "0.15.9",
22-
"@types/chai": "5.0.1",
23-
"@types/chai-as-promised": "8.0.1",
22+
"@types/chai": "4.2.0",
23+
"@types/chai-as-promised": "7.1.6",
2424
"chai": "4.5.0",
2525
"hardhat": "2.22.18",
2626
"mocha": "11.1.0"
@@ -34,9 +34,5 @@
3434
"@uniswap/v3-core": "1.0.1",
3535
"@uniswap/v3-periphery": "1.4.4",
3636
"viem": "2.22.17"
37-
},
38-
"peerDependencies": {
39-
"@types/chai": "4.2.0",
40-
"@types/chai-as-promised": "7.1.6"
4137
}
4238
}
121 KB
Binary file not shown.

0 commit comments

Comments
 (0)