diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-12-01 22:19:34 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-12-09 17:23:27 +0100 |
commit | fd8e5e3c6b124408b6bc8b12563d3d9a7101a5fa (patch) | |
tree | f06ef94bc9e97c02956098aaa42eb1390c9df5d2 | |
parent | 72cb731c44e9ff848d9d4b7d0245f525d249c316 (diff) | |
download | PeerTube-fd8e5e3c6b124408b6bc8b12563d3d9a7101a5fa.tar.gz PeerTube-fd8e5e3c6b124408b6bc8b12563d3d9a7101a5fa.tar.zst PeerTube-fd8e5e3c6b124408b6bc8b12563d3d9a7101a5fa.zip |
Reorganize readme
-rw-r--r-- | README.md | 24 |
1 files changed, 13 insertions, 11 deletions
@@ -142,17 +142,6 @@ Thanks to [WebTorrent](https://github.com/feross/webtorrent), we can make P2P (t | |||
142 | 142 | ||
143 | ## Usage | 143 | ## Usage |
144 | 144 | ||
145 | ### Development | ||
146 | |||
147 | $ npm run dev | ||
148 | |||
149 | ### Test with 3 fresh nodes | ||
150 | |||
151 | $ npm run clean:server:test | ||
152 | $ npm run play | ||
153 | |||
154 | Then you will can access to the three nodes at `http://localhost:900{1,2,3}` with the `root` as username and `test{1,2,3}` for the password. If you call "make friends" on `http://localhost:9002`, the pod 2 and 3 will become friends. Then if you call "make friends" on `http://localhost:9001` it will become friend with the pod 2 and 3 (check the configuration files). Then the pod will communicate with each others. If you add a video on the pod 3 you'll can see it on the pod 1 and 2 :) | ||
155 | |||
156 | ### Production | 145 | ### Production |
157 | 146 | ||
158 | If you want to run PeerTube for production (bad idea for now :) ): | 147 | If you want to run PeerTube for production (bad idea for now :) ): |
@@ -181,6 +170,17 @@ The following commands will upgrade the source (according to your current branch | |||
181 | $ npm run upgrade | 170 | $ npm run upgrade |
182 | # systemctl start peertube | 171 | # systemctl start peertube |
183 | 172 | ||
173 | ### Development | ||
174 | |||
175 | $ npm run dev | ||
176 | |||
177 | ### Test with 3 fresh nodes | ||
178 | |||
179 | $ npm run clean:server:test | ||
180 | $ npm run play | ||
181 | |||
182 | Then you will can access to the three nodes at `http://localhost:900{1,2,3}` with the `root` as username and `test{1,2,3}` for the password. If you call "make friends" on `http://localhost:9002`, the pod 2 and 3 will become friends. Then if you call "make friends" on `http://localhost:9001` it will become friend with the pod 2 and 3 (check the configuration files). Then the pod will communicate with each others. If you add a video on the pod 3 you'll can see it on the pod 1 and 2 :) | ||
183 | |||
184 | ### Other commands | 184 | ### Other commands |
185 | 185 | ||
186 | To print all available command run: | 186 | To print all available command run: |
@@ -197,6 +197,8 @@ See the [contributing guide](https://github.com/Chocobozzz/PeerTube/blob/master/ | |||
197 | 197 | ||
198 | See the [server code documentation](https://github.com/Chocobozzz/PeerTube/blob/master/support/doc/server/code.md). | 198 | See the [server code documentation](https://github.com/Chocobozzz/PeerTube/blob/master/support/doc/server/code.md). |
199 | 199 | ||
200 | See the [client code documentation](https://github.com/Chocobozzz/PeerTube/blob/master/support/doc/client/code.md). | ||
201 | |||
200 | 202 | ||
201 | ## Architecture | 203 | ## Architecture |
202 | 204 | ||