Code Monkey home page Code Monkey logo

loopback-auth's Introduction

Pheonix API Gateway

An API gateway with multi-tenant auth.

To setup

Make sure you have node version 6.2 or higher
To install node packages run
> npm install

To start the server

gulp start

to run lint

gulp lint

to run the test cases

gulp test

to run lint on file save

gulp watch

Note

Install location (If gulp is not found) If the node packages are not installed in global space you will need to refer to them in current directory so running gulp will be ./node_modules/.bin/gulp Alternatively you can add it to your PATH env variable. To install gulp globally: > npm install -g gulp

Testing

Run all tests

gulp test

Run a specific test

./node_modules/.bin/mocha build/test/ -g <string|regex> string | regexp will be checked against the describe field of the test or the desciption lines E.g. from the file user-login.ts describe('REST API USER Login/Logout Tests', [...] it('should return fail login', async function() { [...]

useful options: -b --bail: mocha will exit as there is a failure

Possible commands: ./node_modules/.bin/mocha build/test/ -g Login => will match all the tests because it matches the describe ./node_modules/.bin/mocha build/test/ -g "should return fail login" => will run only the test that probe the login failure

loopback-auth's People

Contributors

lake-lerna avatar

Watchers

 avatar  avatar

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.