## Write documentation
You can help to write the documentation of the REST API, code, architecture,
-demonstrations...
+demonstrations.
+
+For the REST API you can see the documentation in [/support/doc/api](/support/doc/api) directory.
+Then, you can just open the `openapi.yaml` file in a special editor like [http://editor.swagger.io/](http://editor.swagger.io/) to easily see and edit the documentation.
+
+Some hints:
+ * Routes are defined in [/server/controllers/](/server/controllers/) directory
+ * Parameters validators are defined in [/server/middlewares/validators](/server/middlewares/validators) directory
+ * Models sent/received by the controllers are defined in [/shared/models](/shared/models) directory
+
## Develop
-Don't hesitate to talk about features you want to develop by creating an issue
+Don't hesitate to talk about features you want to develop by creating/commenting an issue
before you start working on them :).
### Prerequisites
Then clone the sources and install node modules:
-```bash
+```
$ git clone -b master https://github.com/Chocobozzz/PeerTube
$ cd PeerTube
$ yarn install --pure-lockfile
there, the following commands would create a new database called `peertube_dev`
and a postgres user called `peertube` with password `peertube`:
-```bash
+```
# sudo -u postgres createuser -P peertube
Enter password for new role: peertube
# sudo -u postgres createdb -O peertube peertube_dev
To develop on the server-side:
-```bash
+```
$ npm run dev:server
```
To develop on the client side:
-```bash
+```
$ npm run dev:client
```
This will run 3 nodes:
-```bash
+```
$ npm run clean:server:test
$ npm run play
```