Giter VIP home page Giter VIP logo

cloudflare's Introduction

This is a starter template.

Copy or Fork this repo.

install dependencies: npm install

To start the server use npx wrangler dev

This will allow you to test your Worker locally during development. You will now be able to go to http://localhost:8787 to see your Worker running. Any changes you make to your code will trigger a rebuild, and reloading the page will show you the up-to-date output of your Worker.

Deploy your code to cloudflare. Before deploying make sure you are logged in to your cloudflare account, run: npx wrangler login

It will ask for permission, allow it After that run: npx wrangler deploy

In terminal you will see a sub domain like: <YOUR_WORKER>.<YOUR_SUBDOMAIN>.workers.dev This is where your worker is deployed, head over to this and you can see the output.

To verify if you are logged in, run: npx wrangler whoami

Wrangler is a Command line tool for developing cloudflare workers. It allows you to build and test workers from your own environment, for more information head over to: https://github.com/cloudflare/workers-sdk

After deploying your code, head over to: dash.cloudflare.com In the side navigation pannel, click on: Workers & pages -> Overview. You will see your worker there: starter

Click on your worker, under the preview, you will see the domain on which your worker is hosted. Click on logs->real time logs-> Begin real time logs. This will help you with debugging.

cloudflare's People

Contributors

fakhruddinkw avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.