Giter Club home page Giter Club logo

roquesbeach / archipelago Goto Github PK

View Code? Open in Web Editor NEW
11.0 6.0 11.0 4.2 MB

Los Roques archipelago is a federal dependency of Venezuela consisting of approximately 350 islands, cays, and islets in a total area of 40.61 square kilometers. 🐚 🌊 🐬 πŸ„ 🌴 πŸ₯₯ 🩴 πŸ–οΈ πŸ‘™

Home Page: https://roquesbeach.github.io/archipelago/

License: GNU General Public License v3.0

Ruby 0.13% Shell 0.14% HTML 5.68% JavaScript 89.22% CSS 2.05% SCSS 2.70% Python 0.08%
javascript cloudflare-workers lerna wrangler toml yaml github-actions archipelago npm nodejs

archipelago's Introduction

layout title permalink
page
archipelago 🐚 🌊 🐬 πŸ„ 🌴 πŸ₯₯ 🩴 πŸ–οΈ πŸ‘™
/

English Arabic Spanish Turkish

Los Roques archipelago John at Roques Beach Images at Roques Beach Random at Roques Beach

Cloudflare Workers provides a serverless execution environment that allows you to create entirely new applications or augment existing ones without configuring or maintaining infrastructure.

Requirements

verify installation: node -v

verify installation: git --version

  • Lerna -> npm install -g lerna

verify installation: lerna -v

First Steps

You can sign up at Cloudflare Workers with your own account for free and experiment with the sample code in the Playground. Using the admin side of your Cloudflare Workers account will be the easiest way to deploy Workers without using the Wrangler CLI.

Getting started

  • npm install -g wrangler

  • wrangler --version

Creating a new worker

cd packages
wrangler generate my-worker
cd my-worker

We are building all the Workers under one account and subdomain roquesbeach.workers.dev.

Then to test the Worker locally run

wrangler dev --local

Output

Debugger attached.
Worker reloaded! (454.77KiB)
Listening on ...
... http://127.0.0.1:8787

Coding

Examples

Tutorials

The starter point of the Worker is index.js but Cloudflare Workers also supports other languages.

For this project we are using JavaScript only since we are managing the project with Lerna.

Deployment

We use Lerna locally to publish all the Workers at once, so you need to update your package.json with entries for build and publish, but these entries are not needed for publishing a single worker.

From the repository root the administrators can run

lerna run publish

Output

√ Images:publish (20s)
√ Random:publish (20s)
√ John:publish (22s)

Administrators can also deploy a single Worker. cd to its directory and run

wrangler publish

We use a GitHub Action to deploy on merge to main branch but each Worker deployment is separate.

So you will also need to update the workflow wrangler.yml and add another entry for your Worker, take the example of packages/john/package.json.

Example .github/workflows/wrangler.yml

my-worker:
  runs-on: ubuntu-latest
  name: 🧘 my-worker
  steps:
    - uses: actions/checkout@v3
    - name: πŸš€ Publish
      uses: cloudflare/[email protected]
      with:
        apiToken: ${{ secrets.CF_API_TOKEN }}
        accountId: ${{ secrets.CF_ACCOUNT_ID }}
        workingDirectory: "packages/my-worker"

Using this example you can change all strings my-worker for your Worker name (you need to add it at jobs: scope).

Workers Platform

Cloudflare Worker Limits

Pseudo Websites with Workers Free 🍬 πŸ’ƒ πŸ•Ί 😎

Running Workers in Lynx Browser

Caribbean Sea 🦭 πŸ¦‘ 🦈 πŸ™

Islands 🐑 🐠 🐟 β™“ β›΅ 🏊 πŸ–οΈ

archipelago's People

Contributors

allcontributors[bot] avatar andrew-colman avatar anufdo avatar basalumutgazi avatar dependabot[bot] avatar himanshu007-creator avatar jbampton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

archipelago's Issues

Website landing page

We can improve the background image by making some changes to the scss file.

The archipelago image can be clipped, and its size altered.

Suggested changes:

background-attachment: fixed;

background-size: contain;


proposed for this file

I would like to work on this issue once it's approvedπŸ˜„

preview

2021-07-11

Join the org

I would like to join this organization please. Thanks (:

Cloudflare Authorization Error

Capture_LI

^^ This is the behavior when you try to test it locally. This is the error message generated from the link

{
success: false,
errors: [
{
code: 9106,
message: "Missing X-Auth-Key, X-Auth-Email or Authorization headers"
}
]
}

Request To Join Organization.

I’m Abd, a Student, Developer, Learner and Graphic Designer.
I’m interested in Web & App Development.
I’m currently learning Flutter, React Native & Python.

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.