зеркало из https://github.com/mozilla/fxa.git
9493dd2655
Because: - We want to separate unit tests and integrations tests This Commit: - Tags all unit tests, i.e. tests that can run without infrastructure and in a fairly short amount of time, with #unit. - Adds a test:unit npm command to each package - Adds a test:integration npm command to each package, and adds '#integration' tags to jest tests since jest has no --invert option like mocha. |
||
---|---|---|
.. | ||
data | ||
static | ||
views | ||
.eslintrc.json | ||
.nsprc | ||
.prettierignore | ||
README.md | ||
config-local.json | ||
config.js | ||
config.json | ||
package.json | ||
pm2.config.js | ||
server.js |
README.md
A demo of a subscription flow
Running locally
- install git and node
- get a local copy of the repository:
git clone https://github.com/mozilla/fxa
cd fxa/packages/fortress
- install dependencies:
npm install
- run the server:
npm run dev
- visit it in your browser:
http://localhost:9292/
- if you want to develop even faster, open a new terminal window and run
npm run ui
- now you can go to
http://localhost:5000
and develop without having to ever restart the server or refresh the browser
Testing
This package does not currently have a test suite.
Run npm test
to lint the code.