Skip to content

Latest commit

 

History

History
73 lines (46 loc) · 1.82 KB

integration-with-aircode.md

File metadata and controls

73 lines (46 loc) · 1.82 KB

Integrate Hydrogen with AirCode online

Hydrogen and AirCode are highly compatible, making it easy to run the AirCode project locally using Hydrogen, and vice versa.

Run AirCode Project with Hydrogen

  1. Login to AirCode dashboard. Select your project or create a new one.

  1. Deploy your project.

  1. Click Publish to GitHub

  1. Clone the GitHub repository code to your local machine.

  2. Navigate to the local project directory.

cd my-repo-dir/examples/test-project
  1. Run npx create-aircode-app
npx create-aircode-app@latest
Updated aircode app in current directory.
To get started, run the following commands:
  npm install
  npm start
  1. Install dependencies
npm install
  1. Start the Hydrogen Server
npm start

Deploy Hydrogen Project to AirCode

If your project is created by npx create-aircode-app@latest, you can easily deploy your project to AirCode by the following steps:

  1. Create a github repo, and set it into your package.json file, for example:
  "repository": {
    "type": "git",
    "url": "git+https://github.com/akira-cn/aircode-app-example.git"
  },
  1. Run npm run deploy to prepare the deploy info for AirCode.

  2. Push your code to Github.

  3. Visit your functions/README.md, Click the Deploy button to deploy your project to AirCode.