All Projects → amio → Now Go

amio / Now Go

Licence: mit
Create tinyurl/redirection service with ease.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Now Go

elixir-ms
an elixir microservice base/skeleton 💀
Stars: ✭ 39 (-63.55%)
Mutual labels:  service, micro
Remit
RabbitMQ-backed microservices supporting RPC, pubsub, automatic service discovery and scaling with no code changes.
Stars: ✭ 24 (-77.57%)
Mutual labels:  service, micro
S
a go web freamwork for micro service, very very easy to create and deploy, with auto service registry and discover, high performance and based on http/2 no ssl
Stars: ✭ 67 (-37.38%)
Mutual labels:  service, micro
Horizon
OpenStack Dashboard (Horizon). Mirror of code maintained at opendev.org.
Stars: ✭ 1,195 (+1016.82%)
Mutual labels:  service
Neutron
OpenStack Networking (Neutron). Mirror of code maintained at opendev.org.
Stars: ✭ 1,205 (+1026.17%)
Mutual labels:  service
Flying Pigeon
flying-pigeon 是一个IPC 跨进程通信组件,底层是匿名内存+Binder , 突破1MB大小限制,无需写AIDL文件,让实现跨进程通信就像写一个接口一样简单
Stars: ✭ 97 (-9.35%)
Mutual labels:  service
Murano
Application Catalog for OpenStack. Mirror of code maintained at opendev.org.
Stars: ✭ 106 (-0.93%)
Mutual labels:  service
Bekit
bekit框架致力于解决在应用开发中的公共性痛点,已有“事件总线”、“流程引擎”、“服务引擎”。其中“流程引擎”可作为分布式事务解决方案saga模式的一种实现,并且它很轻量不需要服务端、不需要配置,就可直接使用。
Stars: ✭ 71 (-33.64%)
Mutual labels:  service
Ehealth.api
Index page and integration layer for projects that related to Ukrainian Health Services government institution
Stars: ✭ 103 (-3.74%)
Mutual labels:  service
Paysuper Billing Server
A core monolith-like service with all payment processing business logic in PaySuper.
Stars: ✭ 95 (-11.21%)
Mutual labels:  service
Ec2 Api
AWS EC2 and VPC API support in standalone service for OpenStack. Mirror of code maintained at opendev.org.
Stars: ✭ 93 (-13.08%)
Mutual labels:  service
Charon
Authorization and authentication service.
Stars: ✭ 79 (-26.17%)
Mutual labels:  service
Voipussd
📞 IMEI (USSD) Library on Android Devices by @romellfudi
Stars: ✭ 97 (-9.35%)
Mutual labels:  service
Go Collection
🌷 awesome awesome go, study golang from basic to proficient
Stars: ✭ 1,193 (+1014.95%)
Mutual labels:  micro
Platform Web
micro platform web dashboard 服务治理与监控平台
Stars: ✭ 104 (-2.8%)
Mutual labels:  micro
Face recognition
Face recognition docker image to provide a web service which is able to register and recognize faces
Stars: ✭ 74 (-30.84%)
Mutual labels:  service
Nginx Haskell Module
Nginx module for binding Haskell code in configuration files for great good!
Stars: ✭ 99 (-7.48%)
Mutual labels:  service
X
新生命X组件,数据中间件XCode、日志、网络、RPC、序列化、缓存、Windows服务
Stars: ✭ 1,322 (+1135.51%)
Mutual labels:  service
Service
Android Service Examples
Stars: ✭ 91 (-14.95%)
Mutual labels:  service
Micro Jwt Auth
jwt authorization wrapper for https://github.com/zeit/micro
Stars: ✭ 97 (-9.35%)
Mutual labels:  micro

now-go npm-version install-size

Create tinyurl/redirection service with ease.


Now go, let the legend come back to life!

Features

  • Lightweight tinyurl service (~50 sloc).
  • Three types of routes:
    • URL: redirect to an url
    • TEXT: echo a string
    • FUNCTION: accepts req argument, returns URL/TEXT routes
  • Deploy to now.sh with one command.

Quick Start

  • cli

    npm i -g now-go
    now-go -c path/to/config.json
    
  • programmatically

    const go = require('now-go')
    const config = require('./path/to/config.json') // routes config
    
    go(config)  // Start server on port 3000
    
  • create http handler

    const http = require('http')
    const { createHandler } = require('now-go')
    
    const config = require('./path/to/config.json')
    const handler = createHandler(config)
    
    http.createServer(handler).listen(3000)
    

Example configs

go-config.json

{
  // 302 redirection
  "/": "https://example.com",

  // echo text
  "/tag": "Now go, let the legend come back to life!",

  // "*" is a special route for unmatched path
  "*": "Yet another tinyurl service."
}

go-config.js

// redirect everything to new-example.com
module.exports = {
  "*": (req) => `https://new-example.com${req.url}`
}

Live Demo

License

MIT © Amio

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].