diff --git a/_data/navigation_learn.yml b/_data/navigation_learn.yml index ba3f9e28..31c77aba 100644 --- a/_data/navigation_learn.yml +++ b/_data/navigation_learn.yml @@ -10,6 +10,7 @@ - develop/storage - develop/profiles - develop/collections + - develop/deploy-tips - develop/betatesting - title: Try it! Zero to DApp diff --git a/_develop/deploy-tips.md b/_develop/deploy-tips.md new file mode 100644 index 00000000..dd7193fd --- /dev/null +++ b/_develop/deploy-tips.md @@ -0,0 +1,69 @@ +--- +layout: learn +description: Blockstack app mining documentation +permalink: /:collection/:path.html +--- +# How to deploy a Blockstack dApp +{:.no_toc} + +Blockstack applications are a type of web application that uses Blockstack's technology to authenticate users. As such, Blockstack apps tend to be simple in design and operation, since in many cases, they don’t have to host anything besides the application’s assets. + + * TOC + {:toc} + +## Where to deploy your application + +Before users can interact with your application, you must deploy it on a server that is accessible over the internet. Deploying requires that you: + +* Configure or customize the files in the `public` directory. +* Build your application site for deployment. +* Copy your generated application files to your production server. + +If you first populated your application with the Blockstack application generator, your application contains the starting blocks for configuring, building, and deploying your app. For example, the React template builds out a scaffolding with the following building blocks. + +
File or Directory | +Description | +
---|---|
node_modules/react-scripts |
+ A set of scripts for that helps you kick off React projects without configuring, so you do not have to set up your project by yourself. | +
package.json |
+ Contains a scripts section that includes a reference to the react-scripts, which are a dependency. This script creates a build directory containing your files for deployment. |
+
public/favicon.ico |
+ An example shortcut icon. | +
public/index.html |
+ An entry page for an application. | +
public/manifest.json |
+ A JSON file that describes your web application to the browser. | +
cors |
+ Contains example deployment files for cross-origin request configuration. | +