Skip to content

Commit

Permalink
Docker changes and package upgraded
Browse files Browse the repository at this point in the history
  • Loading branch information
deveshsangwan committed Mar 10, 2024
1 parent 3713143 commit 96702ff
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 18 deletions.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules
package-lock.json
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ RUN apk --no-cache add bash
RUN apk --no-cache --virtual build-dependencies add
RUN npm cache clean --force
RUN npm install
RUN npm install -g nodemon
RUN apk del build-dependencies

ENV NODE_PORT 3000
ENV NODE_ENV production

EXPOSE $NODE_PORT

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Our aim is to maintain high code coverage to ensure the quality of the project.

[![codecov](https://codecov.io/gh/deveshsangwan/cricketScoreApi/graph/badge.svg?token=A3JMLLNTG4)](https://codecov.io/gh/deveshsangwan/cricketScoreApi)
![Functions](https://img.shields.io/badge/functions-98.03%25-brightgreen.svg?style=flat)
![Lines](https://img.shields.io/badge/lines-92.33%25-brightgreen.svg?style=flat)
![Lines](https://img.shields.io/badge/lines-91%25-brightgreen.svg?style=flat)

## Getting Started

Expand Down
5 changes: 1 addition & 4 deletions app/core/mongo.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ class Mongo {

let mongoUrl = 'mongodb+srv://devsangwan2001:[email protected]/CricketScoreApi?retryWrites=true&w=majority';
try {
this.connection = await Mongoose.connect(mongoUrl, {
useNewUrlParser: true,
useUnifiedTopology: true
});
this.connection = await Mongoose.connect(mongoUrl);
writeLogInfo(['Database connection successful']);
} catch (err) {
writeLogError(['Database connection error', err]);
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,30 @@
"license": "ISC",
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@types/chai": "^4.3.11",
"@types/chai": "^4.3.12",
"@types/mocha": "^10.0.6",
"@types/node": "^18.19.10",
"@types/sinon": "^17.0.2",
"chai": "^4.3.10",
"@types/node": "^20.11.25",
"@types/sinon": "^17.0.3",
"chai": "^4.4.1",
"chai-http": "^4.4.0",
"istanbul-badges-readme": "^1.8.5",
"mocha": "^10.2.0",
"mocha": "^10.3.0",
"nyc": "^15.1.0",
"sinon": "^17.0.1",
"ts-node": "^10.9.2"
},
"dependencies": {
"axios": "^1.6.5",
"axios": "^1.6.7",
"bluebird": "^3.7.2",
"body-parser": "^1.20.2",
"cheerio": "^1.0.0-rc.12",
"express": "^4.18.2",
"express": "^4.18.3",
"express-http-context": "^1.2.4",
"mongoose": "^7.0.2",
"mongoose": "^8.2.1",
"nconf": "^0.12.1",
"randomstring": "^1.2.3",
"typescript": "^5.1.6",
"randomstring": "^1.3.0",
"typescript": "^5.4.2",
"underscore": "^1.13.6",
"winston": "^3.11.0"
"winston": "^3.12.0"
}
}

0 comments on commit 96702ff

Please sign in to comment.