Description Usage Arguments Details Functions Examples
Return path to API file.
1 2 3 | run_api(host = "0.0.0.0", port = 3000)
scaffold_api()
|
host, port |
Host and port passed to |
The scaffold_api
function copies the files necessary to deploy the
the api using docker. Make sure you do so from the directory that contains your
configuration file (create_config
). Once copied run
docker build -t coronavirus .
to build the docker image with your config file.
Then run docker run -p 80:8000 -d coronavirus
where 80
is the port you want
to map to (of your machine).
run_api
- Runs the API interactively.
scaffold_api
- Copies required files for docker deployment in current directory.
1 | ## Not run: run_api()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.