@@ -4,7 +4,7 @@ The remote doctype should be created in the cozy repo : [https://github.com/cozy
## Remote doctype org.ecolyo.usage
To create the remote the first create a folder named 'org.ecolyo.usage' and then add a file namerequest in the folder.
To create the remote the first create a folder named 'org.ecolyo.usage' and then add a file named _request_ in the folder.
Here is the structure of the file:
...
...
@@ -17,7 +17,7 @@ Content-Type: application/json
## Local remote doctype
As the doctype if not yet avaible on cozy repo, we first need to test it on local. For that we can use the *—doctypes* command in the cozy-stack serve and use it to point to a local repo.
As the doctype if not yet avaible on cozy repo, we first need to test it on local. For that we can use the _—doctypes_ command in the cozy-stack serve and use it to point to a local repo.
Here are the step:
...
...
@@ -31,7 +31,7 @@ Content-Type: application/json
{{data}}
```
- add the *—doctypes* command in the "docker/cozy-app-dev-with-app.sh" file and also the *-remote-allow-custom-port* flag
- add the _—doctypes_ command in the "docker/cozy-app-dev-with-app.sh" file and also the _-remote-allow-custom-port_ flag
- tag the image to [registry.forge.grandlyon.com/web-et-numerique/llle_project/ecolyo/cozy-env](http://registry.forge.grandlyon.com/web-et-numerique/llle_project/ecolyo/cozy-env)
- add the following command to winstack script in the package.json:
- Go to the docker folder in the project root
```
cd docker
```
- build the docker image and tag it to [registry.forge.grandlyon.com/web-et-numerique/llle_project/ecolyo/cozy-env](http://registry.forge.grandlyon.com/web-et-numerique/llle_project/ecolyo/cozy-env):
- Then add the following command to winstack script in the package.json:
```yaml
-v $PWD/cozy-doctypes:/data/cozy-doctypes
...
...
@@ -68,7 +78,7 @@ remote_assets:
yarn winstack
```
- Change the content request param in io.cozy.doctypes/org.ecolyo.usage using the db tool ([http://localhost:5984/_utils](http://localhost:5984/_utils)):
- Change the content request param in io.cozy.doctypes/org.ecolyo.usage using the db tool ([http://localhost:5984/\_utils](http://localhost:5984/_utils)):