From 94e826e1e2cbbc4c822758bfcc5efd3cd71901c6 Mon Sep 17 00:00:00 2001 From: timvisee Date: Thu, 15 Oct 2020 16:12:23 +0200 Subject: [PATCH] Fix incorrect development server port in documentation --- README.md | 4 ++-- docs/build.md | 4 ++-- server/bin/dev.js | 2 +- test/readme.md | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 68f72103..0064fb2a 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ npm install npm start ``` -Then, browse to http://localhost:8080 +Then, browse to http://localhost:1337 --- @@ -100,7 +100,7 @@ see also [docs/deployment.md](docs/deployment.md) ## Android -The android implementation is contained in the `android` directory, and can be viewed locally for easy testing and editing by running `ANDROID=1 npm start` and then visiting . CSS and image files are located in the `android/app/src/main/assets` directory. +The android implementation is contained in the `android` directory, and can be viewed locally for easy testing and editing by running `ANDROID=1 npm start` and then visiting . CSS and image files are located in the `android/app/src/main/assets` directory. --- diff --git a/docs/build.md b/docs/build.md index f440f410..2743ec32 100644 --- a/docs/build.md +++ b/docs/build.md @@ -2,7 +2,7 @@ Send has two build configurations, development and production. Both can be run v # Development -`npm start` launches a `webpack-dev-server` on port 8080 that compiles the assets and watches files for changes. It also serves the backend API and frontend unit tests via the `server/bin/dev.js` entrypoint. The frontend tests can be run in the browser by navigating to http://localhost:8080/test and will rerun automatically as the watched files are saved with changes. +`npm start` launches a `webpack-dev-server` on port 1337 that compiles the assets and watches files for changes. It also serves the backend API and frontend unit tests via the `server/bin/dev.js` entrypoint. The frontend tests can be run in the browser by navigating to http://localhost:8080/test and will rerun automatically as the watched files are saved with changes. # Production @@ -19,4 +19,4 @@ Send has two build configurations, development and production. Both can be run v # Custom Loaders -The `build/` directory contains custom webpack loaders specific to Send. See [build/readme.md](../build/readme.md) for details on each loader. \ No newline at end of file +The `build/` directory contains custom webpack loaders specific to Send. See [build/readme.md](../build/readme.md) for details on each loader. diff --git a/server/bin/dev.js b/server/bin/dev.js index f5c7ce95..191acae2 100644 --- a/server/bin/dev.js +++ b/server/bin/dev.js @@ -24,7 +24,7 @@ module.exports = function(app, devServer) { .toString() .replace( '', - '' + '' ); res.set('Content-Type', 'text/html'); res.send(index); diff --git a/test/readme.md b/test/readme.md index 4c336689..fdf62ac1 100644 --- a/test/readme.md +++ b/test/readme.md @@ -6,7 +6,7 @@ To run all the tests use `npm test`. This will run the tests and produce a code Unit tests reside in `test/frontend/tests`. -Frontend tests can be ran in the browser by running `npm start` and then browsing to http://localhost:8080/test. Doing it this way will watch for changes and rerun the suite automatically. +Frontend tests can be ran in the browser by running `npm start` and then browsing to http://localhost:1337/test. Doing it this way will watch for changes and rerun the suite automatically. You can also run them in headless Chrome by using `npm run test:frontend`. The results will be printed to the console.