本页还没有译文
本页 15 段还没译成日本語,下面显示的是英文原文。Dashboard
还没翻译译自英文(developers.cloudflare.com)本页 15 段都还没译
Follow this guide to create a Workers application using the Cloudflare dashboard.
Try the Playground
The quickest way to experiment with Cloudflare Workers is in the Playground. The Playground does not require any setup. It is an instant way to preview and test a Worker directly in the browser.
Prerequisites
Create a Cloudflare account, if you have not already.
Setup
To get started with a new Workers application:
-
In the Cloudflare dashboard, go to the Workers & Pages page.
-
Select Create application. From here, you can:
- Select from the gallery of production-ready templates
- Import an existing Git repository on your own account
- Let Cloudflare clone and bootstrap a public repository containing a Workers application.
-
Once you have connected to your chosen Git provider, configure your project and select Deploy.
-
Cloudflare will kick off a new build and deployment. Once deployed, preview your Worker at its provided
workers.devsubdomain.
Continue development
Applications started in the dashboard are set up with Git to help kickstart your development workflow. To continue developing on your repository, you can run:
# clone your repository locally
git clone <git repo URL>
# make sure you are in the root directory
cd <directory>Now, you can preview and test your changes by running Wrangler in your local development environment. Once you are ready to deploy you can run:
# adds the files to git tracking
git add .
# commits the changes
git commit -m "your message"
# push the changes to your Git provider
git push origin mainTo do more:
- Review our Examples and Tutorials for inspiration.
- Set up bindings to allow your Worker to interact with other resources and unlock new functionality.
- Learn how to test and debug your Workers.
- Read about Workers limits and pricing.