Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Remove yarn and unused deps
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementWalter committed Jul 28, 2023
1 parent 9a71690 commit 654cc88
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 627 deletions.
4 changes: 2 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ FROM node:18
WORKDIR /usr/src/app

COPY package.json ./
COPY yarn.lock ./
COPY package-lock.json ./

RUN yarn install --production
RUN npm install --production

COPY . .

Expand Down
2 changes: 1 addition & 1 deletion backend/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const app = express();
app.use(bodyParser.json());
app.use(
cors({
origin: "http://localhost:3000", // React app is served from this origin
origin: "*",
})
);
const port = 4000;
Expand Down
5 changes: 2 additions & 3 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
"name": "backend",
"version": "1.0.0",
"type": "module",
"main": "index.js",
"main": "main.js",
"license": "MIT",
"dependencies": {
"cors": "^2.8.5",
"dotenv": "^16.0.3",
"express": "^4.18.2",
"mongodb": "^5.5.0",
"starknet": "^5.0.0"
}
}
}
Loading

0 comments on commit 654cc88

Please sign in to comment.