Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: refactoring, one cmd #21

Merged
merged 7 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node_modules
.env
broadcast/
contracts/broadcast
cache_forge/
Expand All @@ -20,6 +19,7 @@ dist/
# Hardhat Ignition default folder for deployments against a local node
ignition/deployments/chain-31337

/.env
.DS_STORE
/target
out/
Expand Down
7 changes: 7 additions & 0 deletions backend/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
OC_LISTEN_PORT=1234
OC_HYBRID_ACCOUNT=0x81199357b12d66ebd36166ff80b8b2d2596e4c2a
ENTRY_POINTS=0x5fbdb2315678afecb367f032d93f642f64180aa3
CHAIN_ID=901
HC_HELPER_ADDR=0xe7f1725e7734ce288f8367e1bb143e90bb3f0512
COINRANKING_API_KEY=coinranking679eb5fd3f71f032e8ab560780d4c4ac9e8c129a217a9a0c
OC_PRIVKEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
21 changes: 5 additions & 16 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
# Stage 1: Build the application
FROM node:18 AS builder

FROM node:18
WORKDIR /app

# Copy package.json and package-lock.json (if available)
COPY ./package*.json ./

# Install dependencies
COPY package*.json ./
RUN npm i

# Copy the rest of the application code
COPY *.ts .

# Expose the port the app runs on
COPY tsconfig.json ./
COPY src ./src
EXPOSE ${OC_LISTEN_PORT:-1234}

# Build the TypeScript application
CMD ["npm", "start"]
CMD ["npm", "start"]
7 changes: 0 additions & 7 deletions backend/common/types.ts

This file was deleted.

45 changes: 0 additions & 45 deletions backend/common/utils.ts

This file was deleted.

21 changes: 0 additions & 21 deletions backend/docker-compose.yml

This file was deleted.

10 changes: 0 additions & 10 deletions backend/jest.config.js

This file was deleted.

23 changes: 0 additions & 23 deletions backend/offchain/package.json

This file was deleted.

Loading
Loading