Feel free to publish files from anywhere💕
DemoBook will help the development environment of your work!!
DemoBook is an application to easily deploy static files and provides CLI and Server.
We need to prepare the DemoBook server.
$ git clone [email protected]:hiroppy/demobook.git && cd demobook && npm i && cd packages/app
$ cp .env.sample .env # please edit it
$ npm run build:client:prod
$ openssl req -x509 -newkey rsa:2048 -nodes -sha256 -subj '/CN=localhost' \
-keyout key.pem -out cert.pem # if you need
$ docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
It is beneficial to register the CLI as a task in CI.
DemoBook can notify GitHub by specifying the --pr
option of the CLI.
You need to write userName
and password
in .env
.
the format that a bot posts: #4
This is a sample of how to write in Travis.
# travis.yml
sudo: false
language: node_js
cache:
directories:
- node_modules
node_js:
- 10
os:
- linux
before_script:
- npm i
- npm run build
- npx @demobook/cli -o onwer-name -r repo-name -t https://your-domain -d dist --pr ${TRAVIS_PULL_REQUEST} -n core
It can be executed locally as well.
$ git clone [email protected]:hiroppy/demobook.git && cd demobook && npm i && cd packages/app
$ cp .env.sample .env # please edit it
$ docker-compose up
$ # if you want to create demos...
$ cd ../examples
$ sh local.sh # please edit local.sh(owner name, repository name)
Respect the UA of drone.io.