Deploying Fastify on LeanEngine Node.js environment.
Make sure you have installed lean-cli and have created an application at LeanCloud.
Then run the following command to bind the application:
git clone https://github.com/weakish/fastify-getting-started your-project-name
cd your-project-name
lean switch
Run the project locally:
npm ci
lean up
Then you can visit the site locally at http://127.0.0.1:3000
Deploy the project to LeanEngine staging environment (if not available, it will deploy to production environment):
lean deploy