url-short-cfw/README.md

42 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

2020-10-24 07:49:56 +00:00
# 👷 `url-short-cfw`
2020-10-24 07:00:18 +00:00
2020-10-24 07:49:56 +00:00
An Custom Build Link Shortener build with Cloudflare Workers
2020-10-24 07:00:18 +00:00
2020-10-27 05:57:20 +00:00
![CFW Logo](https://github.com/DFCommunity/img-stack/blob/master/cfw.png?raw=true)
## Status Badges
![atb1](https://flat.badgen.net/badge/Build-With/CloudFlare%20Workers/orange)
![atb2](https://img.shields.io/badge/Build%20Framework-NodeJS-green??style=for-the-badge&logo=node.js)
![Deploy to CF Workers](https://github.com/BRAVO68WEB/url-short-cfw/workflows/Deploy%20to%20CF%20Workers/badge.svg)
![Node.js CI](https://github.com/BRAVO68WEB/url-short-cfw/workflows/Node.js%20CI/badge.svg)
2020-10-24 07:49:56 +00:00
## Project Structure
2020-10-24 07:00:18 +00:00
2020-10-24 07:49:56 +00:00
```
.
├── .github # Auto Deploy and NODE CI scripts (`GitHub Actions Scripts`)
│ └── workflows
│ ├── cfw.js.yml # CloudFlare Worker auto deploy script
│ └── test.yml # NodeJS CI scripts
├── dist # Build Directory
│ └── worker.js # Initial CFW Worker file
├── index.js # Initial CFW Worker file
├── package.json # NodeJS package configuration
├── urls.json # Custom Url Endpoints
└── wrangler.toml # CFW wrangler config
```
## Build your Own
2020-10-24 07:00:18 +00:00
To generate using [wrangler](https://github.com/cloudflare/wrangler)
```
2020-10-24 07:49:56 +00:00
wrangler generate <your-project-name> https://github.com/BRAVO68WEB/url-short-cfw
2020-10-24 07:00:18 +00:00
```
2020-10-27 05:57:20 +00:00