New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tcf-router

Package Overview
Dependencies
Maintainers
0
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tcf-router

provide a express-like tencent cloudbase function router and a local simulator

  • 0.1.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
0
Weekly downloads
 
Created
Source

TCB Express-Like Router

利用腾讯云开发的云函数功能,部署自己的公网云服务。像用Express开发Web服务一样简单,并且提供了本地debug工具,该工具同样可以用于部署在服务器上。

How to create & build

Install

npm install tcf-router -g
// or
yarn global add tcf-router

Create Project

tcf new my-tcf-project

(optional)Create another cloud function

tcf create

Run

tcf dev

Now you can see what happened in your browser

Config your local service

{
  "appPath": "./functions", // the functions' dir path
  "functionEnvVariables": {
    "STAGE": "LOCAL"  // these info will be saved in the environment, you can use process.env.XXX to get
  },
  "context": {  // mock the data of context
    "appId": "wx7ce310ee1e4efd39",
    "uin": "mockuintinkcai831",
    "envId": "local"
  },
  "devServer": {
    "port": 8081,
    "https": false  // https could be {cert: '', key, ''} if you want https
  }
}

TODO

  • layer management(Create/Version)

CI/CD integration (WIP)

  • secretID/Key config file management
  • before/after deployment hooks
  • check & deploy
  • gitlab-ci.yml template
  • visibility of functions
  • execution of functions

Keywords

FAQs

Package last updated on 14 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc