NiseLine is inspired by LocalStack. Goal of this tool is to create a mock service for LINE.

Overview

NiseLine

NiseLine is inspired by LocalStack. Goal of this tool is to create a mock service for LINE.

Getting Started

Launch NiseLine server.

docker run -d -p 3000:3000 dyoshikawa/niseline:latest

And install NiseLiff SDK.

npm i @niseline/niseliff

Use NiseLiff sdk in your client app!

import { buildNiseLiff } from '@niseline/niseliff'
import React from 'react'
import ReactDOM from 'react-dom'

const niseliff = buildNiseLiff()

niseliff
  .init({
    liffId: 'DEFAULT_LIFF_ID', // You can use any value
  })
  .then(() => {
    ReactDOM.render(
      <React.StrictMode>Your client app</React.StrictMode>,
      document.getElementById('root')
    )
  })

NiseLiff SDK

Setup

npm i @niseline/niseliff

Usage

import { buildNiseLiff } from '@niseline/niseliff'
import React from 'react'
import ReactDOM from 'react-dom'

const niseliff = buildNiseLiff()

niseliff
  .init({
    liffId: 'DEFAULT_LIFF_ID', // You can use any value
  })
  .then(() => {
    ReactDOM.render(
      <React.StrictMode>Your client app</React.StrictMode>,
      document.getElementById('root')
    )
  })

Features

NiseLine Server

Setup

Docker

docker run -d -p 3000:3000 dyoshikawa/niseline:latest
curl http://localhost:3000/niseline/ping
# => {"ping":"pong"}

Docker Compose

# docker-compose.yml
version: '3'
services:
  niseline:
    image: dyoshikawa/niseline:latest
    ports:
      - 3000:3000
docker compose up -d
curl http://localhost:3000/niseline/ping
# => {"ping":"pong"}

Usage

curl --request POST \
  --url http://localhost:3000/niseline/users \
  --header 'content-type: application/json' \
  --data '{"id": "FOO_ID","name": "Foo","picture": "http://example.com/foo.jpg","email": "[email protected]"}'
# => null

curl -v -X POST 'http://localhost:3000/oauth2/v2.1/verify' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'id_token=FOO_ID' \
  --data-urlencode 'client_id=1234567890'
# => {"iss":"https://example.com","sub":"FOO_ID","aud":"1234567890","exp":1504169092,"iat":1504263657,"nonce":"0987654asdf","amr":["pwd"],"name":"Foo","picture":"http://example.com/foo.jpg","email":"[email protected]"}

Features

Login API

Messaging API

You might also like...

The Remix Stack for deploying to Vercel with testing, linting, formatting, structure and mock for 3rd party API integration.

The Remix Stack for deploying to Vercel with testing, linting, formatting, structure and mock for 3rd party API integration.

Remix DnB Stack See it live: https://dnb-stack.vercel.app/ Learn more about Remix Stacks. npx create-remix --template robipop22/dnb-stack What's in th

Dec 13, 2022

LIFF Mock is a LIFF Plugin that make testing your LIFF app easy.

LIFF Mock LIFF Mock is a LIFF Plugin that make testing your LIFF app easy. ※ LIFF Plugin feature is available since LIFF SDK v2.19.0. Usage NPM $ npm

Dec 2, 2022

mock APIs, intelligently, with context, and perform other stuff as well

@sasta-sa/project mock APIs, intelligently, with context, and perform other stuff as well 😄 Setting up Clone the project git clone https://github.com

Jan 27, 2022

A mock Twitter page implemented without, partially with, and then with a design system.

Design Systems Workshop A mock Twitter page implemented without, partially with, and then with a design system. Setup Install npm dependencies, then s

Dec 8, 2022

Test utility to mock `window.matchMedia` for JSDOM environments.

mock-match-media Test utility for mocking window.matchMedia in JSDOM environments. JSDOM doesn't provide support for window.matchMedia, which means te

Oct 12, 2022

RESTful service to provide API linting as-a-service

API Linting Service Prerequisites / general idea General idea behind this API implementation is to provide an API as a service based on the awesome sp

Mar 14, 2022

TypeScript plugin for service-to-service (aka. "functionless") cloud integrations.

Functionless λ Functionless is a TypeScript plugin that transforms TypeScript code into Service-to-Service (aka. "functionless") integrations, such a

Jan 2, 2023

Hasbik is a community based social token and the new paradigm in the crypto space. With the goal to build a community around a crypto token.

Hasbik is a community based social token and the new paradigm in the crypto space. With the goal to build a community around a crypto token.

Jan 5, 2022

Transpile TypeScript to Espruino flavor of JavaScript for ESP8266/ESP32 microcontrollers template project. Writing safe, maintainable, and testable code is the projects goal.

Transpile TypeScript to Espruino flavor of JavaScript for ESP8266/ESP32 microcontrollers template project. Writing safe, maintainable, and testable code is the projects goal.

ESP-TypeScript Transpile TypeScript to Espruino flavor of JavaScript for ESP8266/ESP32 microcontrollers template project. Writing safe, maintainable,

Dec 20, 2022
Releases(v0.5.0)
  • v0.5.0(Jan 18, 2022)

    What's Changed

    • Be little cool sample client app by @dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/38
    • add a logo image by @dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/39
    • readme by @dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/40
    • Refactor by @dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/41
    • v0.5.0 by @dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/42

    Full Changelog: https://github.com/cm-dyoshikawa/niseline/compare/v0.4.0...v0.5.0

    Source code(tar.gz)
    Source code(zip)
  • v0.4.0(Jan 18, 2022)

    What's Changed

    • [niseliff-sdk]fix type def and readme by @cm-dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/34
    • fix npm scripts version:new by @dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/35
    • id and ready by @dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/36
    • v0.4.0 by @dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/37

    Full Changelog: https://github.com/cm-dyoshikawa/niseline/compare/v0.3.0...v0.4.0

    Source code(tar.gz)
    Source code(zip)
  • v0.3.0(Jan 18, 2022)

    What's Changed

    • scanCode scanCodeV2 by @cm-dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/29
    • share target picker by @dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/30
    • permanent query, permanent request all by @dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/31
    • permanent link by @cm-dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/32
    • v0.3.0 by @cm-dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/33

    Full Changelog: https://github.com/cm-dyoshikawa/niseline/compare/v0.2.0...v0.3.0

    Source code(tar.gz)
    Source code(zip)
  • v0.2.0(Jan 17, 2022)

    What's Changed

    • fix readme and niseliff-sdk by @cm-dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/24

    Full Changelog: https://github.com/cm-dyoshikawa/niseline/compare/v0.1.0...v0.2.0

    Source code(tar.gz)
    Source code(zip)
  • v0.1.0(Jan 17, 2022)

    What's Changed

    • Add verify id token api by @cm-dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/1
    • fix README by @cm-dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/2
    • Add verify access token api by @cm-dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/3
    • fix README by @cm-dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/4
    • add checking get-user-profile to README by @cm-dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/5
    • refactore db, fix npm scripts by @dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/6
    • lint-staged by @dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/7
    • add channel resource by @dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/8
    • Refactor by @cm-dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/9
    • fix eslint by @cm-dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/10
    • Send reply message by @cm-dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/11
    • update dependencies by @cm-dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/12
    • rename api->server by @cm-dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/13
    • Send push message by @cm-dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/14
    • E2E by @dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/15
    • client-sdk by @dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/16
    • Client sdk get tokens by @dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/17
    • client-sdk get client infos by @dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/18
    • client-sdk login isApiAvailable by @cm-dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/19
    • GET linely/users/me/_access-token by @cm-dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/20
    • Client SDK by @cm-dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/21
    • rename linely->niseline by @cm-dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/22
    • npm publish by @cm-dyoshikawa in https://github.com/cm-dyoshikawa/niseline/pull/23

    New Contributors

    • @cm-dyoshikawa made their first contribution in https://github.com/cm-dyoshikawa/niseline/pull/1
    • @dyoshikawa made their first contribution in https://github.com/cm-dyoshikawa/niseline/pull/6

    Full Changelog: https://github.com/cm-dyoshikawa/niseline/commits/v0.1.0

    Source code(tar.gz)
    Source code(zip)
Owner
null
Linely is inspired by LocalStack. Goal of this tool is to create a mock service for LINE.

Linely Linely is inspired by LocalStack. Goal of this tool is to create a mock service for LINE. Setup Docker docker run -d -p 3000:3000 dyoshikawa/li

null 4 Jan 24, 2022
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
Quickly create an interactive HTML mock-up by auto sourcing lorem ipsum/images generators, with minimal html markup, and no server side code

RoughDraft.js v0.1.5 Quickly mockup / prototype HTML pages with auto-generated content, without additional JavaScript or server side code. <section>

Nick Dreckshage 464 Dec 21, 2022
The LMS (Life Management System) is a free tool for personal knowledge management and goal management based on Obsidian.md.

README Documentation | 中文帮助 The LMS (Life Management System) is a tool for personal knowledge management and goal management based on Obsidian.md. It

null 27 Dec 21, 2022
An Awesome Toggle Menu created with HTML,CSS,JQuery,font-awesome and line by line comment.

Demo : https://blackx-732.github.io/AwesomeMenu/ Under open source license No ©copyright issues Anyone can be modify this code as well Specifically we

BlackX-Lolipop 2 Feb 9, 2021
Base-mock-api - Repo to storage my fake api's to use in my 2022 projects.

Base Mock API's Project made 100% with JavaScript, with the objective of creating endpoints to use in projects. Prerequisites Before you begin, ensure

Arthur Cabral 0 Nov 20, 2022
A social-media mock app for the ones who love to read - and maybe show it off

?? ?? Cachalote ?? ?? Share what you are reading and find people who also likes it - or not! What does it do? This app focuses on three main questions

Thaís França 3 May 22, 2022