Skip to content

Commit

Permalink
Merge branch 'development' into jerry_track_who_changes_permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryren527 committed Jan 12, 2024
2 parents d516ccc + 52cb753 commit d2080bd
Show file tree
Hide file tree
Showing 90 changed files with 5,932 additions and 2,996 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": ["eslint:recommended", "airbnb-base"],
"parser": "babel-eslint",
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module"
Expand Down
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# https://warlord0blog.wordpress.com/2019/09/04/vscode-crlf-vs-lf-battle/

text=lf
text=lf
*.css linguist-vendored eol=lf
*.scss linguist-vendored eol=lf
*.js linguist-vendored eol=lf
Expand Down
7 changes: 4 additions & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ To test this backend PR you need to checkout the #XXX frontend PR.
## How to test:
1. check into current branch
2. do `npm install` and `...` to run this PR locally
3. log as admin user
4. go to dashboard→ Tasks→ task→…
5. verify function “A” (feel free to include screenshot here)
3. Clear site data/cache
4. log as admin user
5. go to dashboard→ Tasks→ task→…
6. verify function “A” (feel free to include screenshot here)

## Screenshots or videos of changes:

Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/fermium
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ JWT_SECRET=<secret value>

To make the process easy create a .env file and put the above text in the file and replace values with the correct values, which you can get from your teammates. Then do an npm run-script build followed by an npm start. By default, the services will start on port 4500 and you can http://localhost:4500/api/<routename> to access the methods. A tools like Postman will be your best friend here, you will need to have an auth token placed in the 'Authorization' header which you can get through the networking tab of the local frontend when you login.

* `npm run lint` command for fixing lint
* `npm run build` command for building server
* `npm run buildw` command for auto rebuild upon change of src
* `npm run start` command for running the server in dist
* `npm run serve` command for running server in src without build
* `npm run lint` -- fix lint
* `npm run build` -- build src server and save in dist
* `npm run buildw` -- auto rebuild upon change of src
* `npm run start` -- run the server in dist
* `npm run serve` -- run the server in src without build
* `npm run dev` -- run the server in src and auto restart upon change of src

Note: Once you check in the code in github, the application will be publsihed to the following:
Developement : https://hgn-rest-dev.herokuapp.com
Expand Down
489 changes: 392 additions & 97 deletions package-lock.json

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"build": "babel src -d dist",
"buildw": "babel src -d dist --watch",
"start": "node dist/server.js",
"serve": "node src/server.js"
"dev": "nodemon --exec babel-node src/server.js",
"serve": "babel-node src/server.js"
},
"pre-commit": [
"lint"
Expand All @@ -23,7 +24,6 @@
"@babel/eslint-parser": "^7.15.0",
"@types/express": "^4.17.6",
"@types/node": "^8.10.61",
"babel-eslint": "^10.1.0",
"eslint": "^8.47.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-base": "^13.1.0",
Expand All @@ -33,6 +33,7 @@
"eslint-plugin-react": "^7.33.1",
"eslint-plugin-react-hooks": "^4.6.0",
"lint-staged": "^13.0.3",
"nodemon": "^3.0.1",
"pre-commit": "^1.2.2"
},
"dependencies": {
Expand All @@ -52,6 +53,7 @@
"cron": "^1.8.2",
"dotenv": "^5.0.1",
"express": "^4.17.1",
"express-validator": "^7.0.1",
"googleapis": "^100.0.0",
"jsonwebtoken": "^9.0.0",
"lodash": "^4.17.21",
Expand All @@ -66,5 +68,10 @@
"redis": "^4.2.0",
"uuid": "^3.4.0",
"ws": "^8.8.1"
},
"nodemonConfig": {
"watch": [
"/src/**/*"
]
}
}
1 change: 0 additions & 1 deletion src/constants/suggestionModalData.json

This file was deleted.

155 changes: 0 additions & 155 deletions src/controllers/REAL_TIME_timerController.js

This file was deleted.

Loading

0 comments on commit d2080bd

Please sign in to comment.