diff --git a/.github/workflows/snyk.yaml b/.github/workflows/snyk.yaml new file mode 100644 index 00000000..0e2dd7aa --- /dev/null +++ b/.github/workflows/snyk.yaml @@ -0,0 +1,32 @@ + name: Sonar Scan + on: + push: + branches: + - master + pull_request: + types: [opened, synchronize, reopened] + + jobs: + sonarcloud: + name: SonarCloud Scan and Quality Gate + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: SonarCloud Scaning Process + uses: SonarSource/sonarcloud-github-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + + #- name: approval + # uses: trstringer/manual-approval@v1 + # with: + # secret: ${{ secrets.GT_TOKEN }} + # approvers: Abhi-Moreyeahs + + + + diff --git a/README.md b/README.md index d754176b..42e9586e 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ For instruction, please visit: Front-end that works well with this Back-end > [Axios Client](https://www.bezkoder.com/axios-request/) -> [Angular 8 Client](https://www.bezkoder.com/angular-crud-app/) / [Angular 10 Client](https://www.bezkoder.com/angular-10-crud-app/) / [Angular 11 Client](https://www.bezkoder.com/angular-11-crud-app/) / [Angular 12 Client](https://www.bezkoder.com/angular-12-crud-app/) / [Angular 13 Client](https://www.bezkoder.com/angular-13-crud-example/) +> [Angular 8 Client](https://www.bezkoder.com/angular-crud-app/) / [Angular 10 Client](https://www.bezkoder.com/angular-10-crud-app/) / [Angular 11 Client](https://www.bezkoder.com/angular-11-crud-app/) / [Angular 12 Client](https://www.bezkoder.com/angular-12-crud-app/) / [Angular 13 Client](https://www.bezkoder.com/angular-13-crud-example/) / [Angular 14 Client](https://www.bezkoder.com/angular-14-crud-example/) / [Angular 15 Client](https://www.bezkoder.com/angular-15-crud-example/) > [Vue 2 Client](https://www.bezkoder.com/vue-js-crud-app/) / [Vue 3 Client](https://www.bezkoder.com/vue-3-crud/) / [Vuetify Client](https://www.bezkoder.com/vuetify-data-table-example/) @@ -48,6 +48,12 @@ Fullstack: > [Angular 12 + Node.js Express + MySQL example](https://www.bezkoder.com/angular-12-node-js-express-mysql/) +> [Angular 13 + Node.js Express + MySQL example](https://www.bezkoder.com/angular-13-node-js-express-mysql/) + +> [Angular 14 + Node.js + Express + MySQL example](https://www.bezkoder.com/angular-14-node-js-express-mysql/) + +> [Angular 15 + Node.js + Express + MySQL example](https://www.bezkoder.com/angular-15-node-js-express-mysql/) + > [React + Node.js + Express + MySQL example](https://www.bezkoder.com/react-node-express-mysql/) > [React + Redux + Node.js Express + MySQL](https://www.bezkoder.com/react-redux-mysql-crud/) diff --git a/package.json b/package.json index ef1deac0..f45d4fa4 100644 --- a/package.json +++ b/package.json @@ -1,22 +1,23 @@ { - "name": "nodejs-express-mysql", - "version": "1.0.0", - "description": "Node.js Restful CRUD API with Node.js, Express and MySQL", - "main": "server.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "keywords": [ - "nodejs", - "express", - "mysql", - "restapi" - ], - "author": "bezkoder", - "license": "ISC", - "dependencies": { - "cors": "^2.8.5", - "express": "^4.17.1", - "mysql": "^2.17.1" + "name": "nodejs-express-mysql", + "version": "1.0.0", + "description": "Node.js Restful CRUD API with Node.js, Express and MySQL", + "main": "server.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [ + "nodejs", + "express", + "mysql", + "restapi" + ], + "author": "bezkoder", + "license": "ISC", + "dependencies": { + "cors": "2.8.5", + "express": "4.18.2", + "mysql": "2.18.1" + } } -} + \ No newline at end of file diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 00000000..f9981f66 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,18 @@ +# required metdata +sonar.projectKey=Abhi-Moreyeahs_nodejs-express-mysql +sonar.organization=abhi-moreyeahs +sonar.projectVersion=1.0 +sonar.sourceEncoding=UTF-8 +# sonar.language=js +sonar.eslint.eslintconfigpath=app/eslintrc.json + +# path to srouce directories +sonar.sources=app +# sonar.tests=app/test/integration/api/ + +# excludes +sonar.exclusions=app/node_modules/*,app/coverage/lcov-report/*,app/test/integration/api/v1/*,app/middlewares/common-middleware.js + +# coverage reporting +sonar.javascript.lcov.reportPaths=app/coverage/lcov.info +# sonar.surefire.reportPaths=app/coverage/lcov-report \ No newline at end of file