Code Monkey home page Code Monkey logo

0f16a7d3198a4fb51dae7bc6c42e324864b49e83f1a9d4e58c708666fb7b05ca's Introduction

Firefox Accounts Basket Proxy

Build Status: Travis

This server acts as an intermediary between Firefox Accounts and Basket, Mozilla's email newsletter subscription system. It allows FxA-OAuth-authenticated access to the Basket API and is responsible for some background data-syncing tasks.

Over time, we expect most of the functionality of this proxy to be absorbed into Basket itself; running it as a separate system in the meantime gives us the ability to iterate quickly and minimise coupling between the two systems.

To run the proxy:

node ./bin/basket-proxy-server.js

To process account-related events from SQS:

node ./bin/basket-event-handler.js

For testing and development purposes, there's a minimal 'fake' implementation of the Basket server API that stores its state in memory. Run it like so, and the proxy will use it unless configured with the URL of a live Basket server:

node ./bin/fake-basket-server.js

Prerequisites

  • node 6
  • npm
  • Grunt

Grunt is used to run common tasks to build, test, and run local servers.

TASK DESCRIPTION
grunt lint run ESLint and JSCS (code style checker) on the code.
grunt server run a local server running on port 1114.
grunt test run local tests.
grunt version stamp a new minor version. Updates the version number and creates a new CHANGELOG.md.
grunt version:patch stamp a new patch version. Updates the version number and creates a new CHANGELOG.md.

License

MPL 2.0

0f16a7d3198a4fb51dae7bc6c42e324864b49e83f1a9d4e58c708666fb7b05ca's People

Contributors

g-k avatar jbuck avatar jrgm avatar mozilla-github-standards avatar rfk avatar seanmonstar avatar vbudhram avatar vladikoff 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.