Skip to content

Commit

Permalink
BC-7994 Use node --watch instead of nodemon (#3547)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyedwiper authored Dec 2, 2024
1 parent 580f211 commit 9312d68
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 35 deletions.
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,14 @@ Short setup version:

1. Clone directory into local folder
2. Go into the cloned folder and enter `npm install`
3. Install nodemon and gulp globally by entering `npm install -g nodemon gulp`

## Run

1. Start the [schul-cloud server](https://github.com/hpi-schul-cloud/schulcloud-server)
2. Go into project folder
3. Run `gulp watch` to run gulp
4. Set the ENV-variable `TZ=Europe/Berlin` (for windows use `set TZ=Europe/Berlin`). You can also set the variables `SC_TITLE=HPI Schul-Cloud` if you want.
5. run `npm run watch` to boot the application
5. run `npm run dev` to boot the application
6. go to `http://localhost:3100`

**Alternative with browser-sync**

1. run `gulp watch-reload` to run gulp with browser sync. It also starts the node-client-server.
2. go to `http://localhost:7000`

For connecting to the [SchulCloud Calendar-Service](https://github.com/hpi-schul-cloud/schulcloud-calendar) you have to set `export CALENDAR_SERVICE_ENABLED=true`.

For connecting to the [SchulCloud Notification-Service](https://github.com/hpi-schul-cloud/node-notification-service) you have to set `export NOTIFICATION_SERVICE_ENABLED=true`.
Expand Down
20 changes: 0 additions & 20 deletions nodemon.json

This file was deleted.

1 change: 0 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
"name": "schulcloud-client",
"scripts": {
"start": "node --unhandled-rejections=warn ./bin/www",
"watch": "nodemon --config nodemon.json",
"debug": "nodemon --inspect=9310 --config nodemon.json",
"debug:container": "nodemon --inspect=0.0.0.0:9310 --config nodemon.json",
"watch": "node --watch ./bin/www",
"debug": "node --inspect=9310 --watch ./bin/www",
"lint": "eslint --ext .json --fix . && eslint ./controllers ./helpers ./test/mocha ./api.js ./app.js ./locales --ext .js --ext .json --fix",
"startd": "echo 'Do you mean 'npm run watch'?'",
"mocha": "cross-env NODE_ENV=test mocha test/mocha/ --exit --recursive",
"build": "gulp clear && cross-env NODE_OPTIONS=--openssl-legacy-provider gulp",
"dev": "gulp clear && cross-env NODE_OPTIONS=--openssl-legacy-provider gulp watch-reload",
Expand Down Expand Up @@ -173,7 +171,6 @@
"imagemin-lint-staged": "^0.5.1",
"lint-staged": "^10.5.4",
"mocha": "^10.1.0",
"nodemon": "^2.0.20",
"nyc": "^15.1.0",
"postcss-css-variables": "^0.13.0",
"pump": "^1.0.2",
Expand Down

0 comments on commit 9312d68

Please sign in to comment.