Update readme/doc with new client port for dev
This commit is contained in:
parent
c3d19a4907
commit
ed5f91633d
|
@ -189,10 +189,15 @@ To develop on the server side (server files are automatically compiled when we m
|
||||||
|
|
||||||
$ npm run dev:server
|
$ npm run dev:server
|
||||||
|
|
||||||
|
The server (with the client) will listen on `localhost:9000`.
|
||||||
|
|
||||||
|
|
||||||
To develop on the client side (client files are automatically compiled when we modify them):
|
To develop on the client side (client files are automatically compiled when we modify them):
|
||||||
|
|
||||||
$ npm run dev:client
|
$ npm run dev:client
|
||||||
|
|
||||||
|
The API will listen on `localhost:9000` and the frontend on `localhost:3000` (with hot module replacement, you don't need to refresh the web browser).
|
||||||
|
|
||||||
**Username**: *root* <br/>
|
**Username**: *root* <br/>
|
||||||
**Password**: *test*
|
**Password**: *test*
|
||||||
|
|
||||||
|
|
|
@ -53,9 +53,9 @@ Uses [TSLint](https://palantir.github.io/tslint/) for TypeScript linting and [An
|
||||||
## Developing
|
## Developing
|
||||||
|
|
||||||
* Install [the dependencies](https://github.com/Chocobozzz/PeerTube#dependencies)
|
* Install [the dependencies](https://github.com/Chocobozzz/PeerTube#dependencies)
|
||||||
* Run `npm install` at the root directory to install all the dependencies
|
* Run `yarn install` at the root directory to install all the dependencies
|
||||||
* Run PostgreSQL and create the database `peertube_dev`.
|
* Run PostgreSQL and create the database `peertube_dev`.
|
||||||
* Run `npm run dev:client` to compile the client, run the server and watch client files modifications.
|
* Run `npm run dev:client` to compile the client, run the server, watch client files modifications and reload modules on the fly (you don't need to refresh manually the web browser). The API listen on `localhost:9000` and the client on `localhost:3000`.
|
||||||
|
|
||||||
In a Angular application, we create components that we put together. Each component is defined by an HTML structure, a TypeScript file and optionnaly a SASS file.
|
In a Angular application, we create components that we put together. Each component is defined by an HTML structure, a TypeScript file and optionnaly a SASS file.
|
||||||
If you are not familiar with Angular I recommend you to read the [quickstart guide](https://angular.io/docs/ts/latest/quickstart.html).
|
If you are not familiar with Angular I recommend you to read the [quickstart guide](https://angular.io/docs/ts/latest/quickstart.html).
|
||||||
|
|
|
@ -40,9 +40,9 @@ Uses [JavaScript Standard Style](http://standardjs.com/).
|
||||||
## Developing
|
## Developing
|
||||||
|
|
||||||
* Install [the dependencies](https://github.com/Chocobozzz/PeerTube#dependencies)
|
* Install [the dependencies](https://github.com/Chocobozzz/PeerTube#dependencies)
|
||||||
* Run `npm install` at the root directory to install all the dependencies
|
* Run `yarn install` at the root directory to install all the dependencies
|
||||||
* Run PostgreSQL and create the database `peertube_dev`.
|
* Run PostgreSQL and create the database `peertube_dev`.
|
||||||
* Run `npm run dev:server` to compile the client, run the server and watch server files modifications.
|
* Run `npm run dev:server` to run the server, watch server files modifications and restart it automatically. The server (API + client) listen on `localhost:9000`.
|
||||||
|
|
||||||
The `NODE_ENV=test` is set to speed up communications between pods (see [constants.ts](https://github.com/Chocobozzz/PeerTube/blob/master/server/initializers/constants.ts)).
|
The `NODE_ENV=test` is set to speed up communications between pods (see [constants.ts](https://github.com/Chocobozzz/PeerTube/blob/master/server/initializers/constants.ts)).
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue