Giter VIP home page Giter VIP logo

trap's Introduction

trap-core

get started

  • install

     yarn add @trapts/core
    
  • example

     import { Server } from '@trapts/core'
     import * as bodyParser from 'koa-bodyparser'
     
     const bootstrap = () => {
     	const server = new Server()
     
     	// bind cache client to context
     	server.bindToContext('cache', new Cache({ stdTTL: 86400000 }))
     	
     	// koa middleware
     	server.use(bodyParser())
     	
     	// koa keys
     	server.keys(['Hello', 'World'])
     	
     	// start
     	server.start(3000)
     }
     
     bootstrap()

trap's People

Contributors

alfierichou avatar alonesuperman avatar renovate-bot avatar

Stargazers

 avatar

Watchers

 avatar

trap's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update dependency @types/koa-generic-session to v1.0.6
  • Update dependency koa-logger to v3.2.1
  • Update dependency node-cache to v4.2.1
  • Update Node.js to v10.24
  • Update dependency @types/jsonwebtoken to v8.5.9
  • Update dependency @types/knex to v0.16.1
  • Update dependency class-transformer-validator to v0.9.1
  • Update dependency koa-bodyparser to v4.4.1
  • Update dependency reflect-metadata to v0.2.2
  • Update dependency tsconfig-paths to v3.15.0
  • Update dependency tslint-plugin-prettier to v2.3.0
  • Update Node.js to v22
  • Update dependency @types/cron to v2
  • Update dependency @types/node to v20
  • Update dependency bcrypt to v5 (bcrypt, @types/bcrypt)
  • Update dependency cron to v3
  • Update dependency husky to v9
  • Update dependency ioredis to v5 (ioredis, @types/ioredis)
  • Update dependency jsonwebtoken to v9 (jsonwebtoken, @types/jsonwebtoken)
  • Update dependency koa-generic-session to v2.3.1 (koa-generic-session, @types/koa-generic-session)
  • Update dependency node-cache to v5
  • Update dependency nodemon to v3
  • Update dependency prettier to v3
  • Update dependency pretty-quick to v4
  • Update dependency supertest to v7
  • Update dependency ts-node to v10
  • Update dependency tsconfig-paths to v4
  • Update dependency tslint to v6
  • Update dependency typescript to v5
  • Update docker.io/mysql Docker tag to v8
  • Update docker.io/redis Docker tag to v7
  • Update jest monorepo to v29 (major) (@types/jest, jest, ts-jest)
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

docker-compose
docker-compose.yml
dockerfile
Dockerfile
  • docker.io/node 10.15-alpine
mysql/Dockerfile
  • docker.io/mysql 5.7
redis/Dockerfile
  • docker.io/redis 4-alpine
npm
package.json
  • @trapts/router 1.0.0
  • @trapts/schedule 1.0.3
  • amqplib 0.5.3
  • bcrypt 3.0.5
  • class-transformer 0.2.0
  • class-transformer-validator 0.7.1
  • class-validator 0.9.1
  • cron 1.7.0
  • dir_filenames 1.0.6
  • ioredis 4.9.0
  • jsonwebtoken 8.5.1
  • knex 0.16.3
  • koa 2.7.0
  • koa-bodyparser 4.2.1
  • koa-generic-session 2.0.1
  • koa-logger 3.2.0
  • koa-redis 3.1.3
  • lodash 4.17.11
  • mysql 2.16.0
  • node-cache 4.2.0
  • reflect-metadata 0.1.13
  • socket.io 2.2.0
  • typescript 3.4.1
  • @types/amqplib 0.5.11
  • @types/bcrypt 3.0.0
  • @types/cron 1.7.0
  • @types/ioredis 4.0.10
  • @types/jest 24.0.11
  • @types/jsonwebtoken 8.3.2
  • @types/knex 0.15.2
  • @types/koa 2.0.48
  • @types/koa-generic-session 1.0.2
  • @types/lodash 4.14.123
  • @types/node 10.14.4
  • husky 1.3.1
  • jest 24.5.0
  • nodemon 1.18.10
  • prettier 1.16.4
  • pretty-quick 1.10.0
  • supertest 4.0.2
  • ts-jest 24.0.1
  • ts-node 8.0.3
  • tsconfig-paths 3.8.0
  • tslint 5.14.0
  • tslint-config-prettier 1.18.0
  • tslint-plugin-prettier 2.0.1

  • Check this box to trigger a request for Renovate to run again on this repository

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.