Coder Social home page Coder Social logo

focb-webring's Introduction

friends of cranebot webring

signature cf pages

links

about

the friends of cranebot webring is a humble little webring for the friends of my discord bot, cranebot.

there is no criteria for sites on webring to adhere to -- the basic rules of respect apply, but are not a concern when this webring is between personal friends. all sites are loosely related by similar interests, but this webring is primarily a way for us to feel connected and to promote and support one anothers' sites.

this readme contains some general notes on its structure, and how to develop with this code.

cloudflare pages

this site exists on cloudflare's pages hosting service. the following are a few quick reminders on how to use cloudflare's wrangler to deploy, develop, and debug the site.

to deploy update, from project root:

npm run deploy

to launch local test server:

npm run dev

to connect to live production logging:

npm run tail

site structure

this [pseudo]static site has a basic structure:

root/
├─ functions/
│  ├─ api/
│  │  └─ { api endpoints... }
│  ├─ tsconfig.json
│  ├─ _middleware.ts
│  └─ _routes.json
├─ node modules/
│  └─  { node modules, of course... }
├─ src/
│  ├─ assets/
│  │  ├─ css/
│  │  ├─ images/
│  │  ├─ js/
│  │  ├─ ts/
│  │  └─ favicon.ico
│  ├─ { html pages... }
│  └─ _redirects
├─ package-lock.json
├─ package.json
├─ readme.md
└─ tsconfig.json

this project's structure is built specifically for cloudflare pages' framework, and determines the live site's routing. the src/assets folder contains all traditionally-static site assets [css, images, js + ts].

files such as functions/tsconfig.json functions/_middleware.ts, functions/_routes.json, src/_redirects lend to features of cloudflare pages and can be explained by the pages and pages functions documentation.

files and folders associated with nodejs -- node_modules, package-lock.json, package.json, root/tsconfig.json -- may be disregarded.

important: when compiling typescript, it is important to only compile the contents of src/assets/ts/, outputting them to src/assets/js/. the contents of functions are handled by cloudflare pages and compiled automatically on deployment.

node modules

this project uses two modules:

  • typescript
  • cloudflare wrangler

focb-webring's People

Contributors

cryptiddddd 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.