程序员的工具库

2024/05/19 it-tools

如何部署自己的 IT 工具库

日常开发中经常需要用到下面功能:

  1. json 格式化或者验证
  2. unixtime 时间转换
  3. url encoding 和 decoding
  4. md5 加解密
  5. ......

一般可以通过操作系统shell,脚本语言,在线工具来解决。据说一些有商业头脑的通过运营类似网站日活可观,广告收入惊人。

其实我们可以自己搭建一个在线工具站,通过 github pages 部署,完全免费。效果如下:

搭建方法:

  1. 从 github fork 项目https://github.com/shidongwa/it-tools(git clone git@github.com:shidongwa/it-tools.git)
  2. 启用和运行 github Actions “Deploy to Github Pages”(deploy-github-pages.yml
  3. github pages 设置中“Build and deployment” Source 中设置为“GitHub Actions”
  4. 访问你项目网站 https://用户名.github.io/it-tools/

Search

    Table of Contents