2018-06-04 07:33:49 +00:00
2018-06-27 07:26:23 +00:00
[![CircleCI ](https://img.shields.io/circleci/project/github/status-im/pluto.svg )](https://circleci.com/gh/status-im/pluto/tree/master)
2018-06-25 13:59:59 +00:00
2018-06-04 07:33:49 +00:00
## Development
Development requires [Deps and CLI ](https://clojure.org/guides/getting_started ) tooling installed.
2018-06-27 07:26:23 +00:00
Run Clojure tests using `clojure -A:test-clj`
Run ClojureScript tests using `clojure -A:test-cljs`
2018-06-04 07:33:49 +00:00
2018-06-27 07:26:23 +00:00
Run figwheel using `clojure -A:figwheel` .
2018-06-04 07:33:49 +00:00
2018-06-29 12:30:46 +00:00
## Documentation
2018-06-04 07:33:49 +00:00
2018-06-29 12:30:46 +00:00
Documentation website is maintained using [docusaurus ](https://docusaurus.io ). The layout logic can be found in `website` while the content is kept in `docs` .
To hack on the documentation, run `npm run start` .
2018-05-07 09:31:58 +00:00
### IPFS
2018-05-10 09:57:22 +00:00
To upload a directory to IPFS:
2018-05-07 09:31:58 +00:00
```
ipfs daemon
```
To add a directory:
`ipfs add -r {dir-name}`
After that it will be available through localhost:8080 and the main gateway.
It will eventually disappear from the main gateway.
2018-07-06 08:10:37 +00:00
## Continous Deployment
To make possible deploying the new version of the page from the `master` branch a Jenkins job is configured at:
https://jenkins.status.im/job/misc/job/pluto/
This job is ran according to the [`Jenkinsfile` ](Jenkinsfile ) configuration.
In order for this to work there are two requirements:
* The `status-im-auto` user which API token is used needs to have at least write access.
* The repo has to have the https://jenkins.status.im/github-webhook/ webhook configured.