Memory backend (for testing) for the fxa-auth-db-server
Перейти к файлу
Vlad Filippov 824e95d8e0 Merge pull request #44 from mozilla/travis-sudo
chore(travis): update travis to be sudo: false r=vladikoff
2015-08-09 18:22:59 -04:00
bin refactor(lib): Move a few source files into lib/ 2015-05-14 17:07:55 +12:00
config chore(lint): Switch from JSHint to ESLint 2015-07-14 16:43:42 -07:00
lib Merge pull request #40 from pdehaan/add-eslint 2015-07-27 19:26:39 +10:00
scripts chore(lint): Switch from JSHint to ESLint 2015-07-14 16:43:42 -07:00
test/backend feat(tests): pass the server object to backend tests 2015-07-13 09:43:23 +01:00
.eslintrc chore(lint): Switch from JSHint to ESLint 2015-07-14 16:43:42 -07:00
.gitignore More patterns for .gitignore 2014-10-29 11:19:35 +13:00
.travis.yml chore(travis): update travis to be sudo: false 2015-08-09 18:21:12 -04:00
Gruntfile.js chore(lint): Switch from JSHint to ESLint 2015-07-14 16:43:42 -07:00
LICENSE Add the full text of the MPL 2.0 2014-09-23 03:37:14 +12:00
README.md Address some review comments in #12 2015-02-02 12:03:12 +13:00
index.js refactor(lib): Move a few source files into lib/ 2015-05-14 17:07:55 +12:00
package.json chore(lint): Switch from JSHint to ESLint 2015-07-14 16:43:42 -07:00

README.md

Firefox Accounts DB Server, Memory Backend

Memory backend (used in testing) for the fxa-auth-db-server.

Prerequisites

  • node 0.10.x or higher
  • npm

Configuration

No configuration is usually needed for this module, but you may overwrite values should you need to. If you then set your NODE_ENV, then the file config/$NODE_ENV.json will be read in as part of loading configuration:

export NODE_ENV=dev

In config/config.js you can see a set of defaults for various config options. Go take a look and then create a new local file called config/dev.js. This will contain a set of values to override the defaults. For example, if want to run on port 8080 instead of port 8000, try this:

{
  "port": 8080
}

The same config is used by the main server as shown below.

Starting the Server

Once the database has been created and patched, you can start the server (keep the same NODE_ENV as you had earlier):

npm start

Once this has started up, it will be listening on locahost:8000 (or whatever port you have configured in your local config file).

License

MPL 2.0