Coder Social home page Coder Social logo

hyperloris / nestjs-tile38 Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 1.0 1.08 MB

Tile38 module for Nest framework (node.js)

License: MIT License

JavaScript 4.28% TypeScript 94.73% Shell 0.99%
javascript nodejs typescript database geo geofences geospatial index location spatial

nestjs-tile38's Introduction

Nest Logo

NPM Version Package License NPM Downloads CI Status Coverage

Description

Tile38 module for Nest. This package is based on Tile38-ts, so visit its documentation for any questions about the API.

Installation

$ npm i --save nestjs-tile38 @iwpnd/tile38-ts

Quick Start

First, import the Tile38Module into your root module:

import { Module } from '@nestjs/common';
import { Tile38Module } from 'nestjs-tile38';

@Module({
  imports: [
    Tile38Module.forRoot({
      url: 'redis://localhost:9851',
    }),
  ],
})
export class AppModule {}

Second, inject the Tile38 client into any of your injectables by using the InjectTile38 decorator:

import { Injectable } from '@nestjs/common';
import { InjectTile38 } from 'nestjs-tile38';
import { Tile38 } from '@iwpnd/tile38-ts';

@Injectable()
export class AppService {
  public constructor(@InjectTile38() private readonly tile38: Tile38) {}
}

License

Licensed under MIT.

Acknowledgements

nestjs-tile38's People

Contributors

dependabot[bot] avatar hyperloris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

roger120981

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.