Граф коммитов

117 Коммитов

Автор SHA1 Сообщение Дата
Danny Coates 81575019a9
refactor(packages): use workspace references 2020-05-21 10:57:21 -07:00
Jody Heavener 099163e947
docs(all): update readmes across all packages to improve testing documentation 2020-05-06 12:02:21 -04:00
Barry Chen 7ed4037665
feat(gql-api): add auth to graphql-api server
This patch enables graphql-api server to accept an OAuth2 access token
on the graphql route.

It:
  1. validates the format of the authorization header value in middleware
  2. looks up the token in Redis
  3. ensures the client id of the token is in the allowed clients list
  4. includes the user's id and email in the 'authUser' property in
     Apollo's context
  5. includes the authorization header value as 'token' in Apollo's
     context
2020-04-30 10:09:22 -05:00
Ben Bangert 3643654af0
feat(graphql-api): initial base project
Because:

* New graphql-api server doesn't exist yet.

This commit:

* Duplicates the admin-server project, with admin-server specific bits
  removed.
* Links in necessary build portions to circleci.

Closes #4812
2020-04-22 11:47:46 -07:00
Danny Coates 1dd1b038d4
refactor(config): replace 127.0.0.1 with localhost
why, after all these years?

because there's a few annoying cases where the loopback
makes dev harder. When you try to test a flow from a not
local machine, like a tv, mobile device, or a saucelabs
proxy session. With localhost it's easy enough to forward
but loopback not so much

enough is enough
2020-04-15 13:55:42 -07:00
Danny Coates 3a054dfc3f
refactor(pm2): restructure our pm2 configs
why: several reasons...

- to have a unified approach and pattern for:
  - debugging
  - fs watching for local dev
  - running services in dev
  - configuring services in dev

- to improve the initial clone and subsequent `npm ci` experience
- to make future work on tooling easier
2020-04-14 14:38:38 -07:00
Danny Coates a4b3996349
refactor(npm-scripts): refactored npm scripts for better ergonomics
1. renamed _scripts/*.sh to use kebab-case
2. linted _scripts with shellcheck
3. added _dev directory and moved pm2 json files there
4. added nps and package-scripts.js
  - this allows us to do nice things like: `npm start debug firefox`
  - I'd like to expand this further but it's a start
5. refactored the install scripts to make `npm install` nicer
6. renamed pm2 process names for easier control
  - can use `pm2 logs auth` instead of the id
2020-04-13 16:17:36 -07:00
Ankita Shrivastava 0058fd16aa
fix(readme): Update the README section with more commands. 2020-04-08 16:44:27 -04:00
Jody Heavener dce8268b3c
feat(secrets): pass in secrets.json file as env CONFIG_FILES where you can supply your own stripe keys 2020-03-18 14:13:21 -04:00
Danny Coates 7f60ef5769
chore(deps): update top-level dependencies
start-android is no longer needed so it was removed
along with its dependencies and replaced by adb-reverse

I removed `adr-log` in favor of running `npx adr-log` to
make `npm ci` smaller.

`concurrently` is no longer used.

The remainder were updated to their latest versions.
2020-03-12 14:01:59 -07:00
Lauren Zugai 03a88a03df
chore(docs): Update root README to include table of contents plus links to ecosystem platform and Riot 2020-03-10 11:43:35 -05:00
Ben Bangert 5d3747e384
feat: add pm2 debug servers and add'l debug scripts
Because:

* It can be useful to debug multiple services at once.

This commit:

* Adds a pm2 config that starts 4 of the servers using start-dev-debug
  with unique inspect ports so that they can be debugged all at the
  same time.
* Updates the package.json files for these services so they don't choose
  the same port.
* Documents the ports used for debugging.
* Add's an attach debug for VS Code that lets one choose which process
  to debug.
2020-03-06 10:33:20 -08:00
Jody Heavener 6529e24b86
docs(setup): add note about not running your own services during startup 2020-03-04 17:42:15 -05:00
Vijay Budhram 2fa9dce43f
chore(mem): Remove auth server db memory database 2020-02-12 11:56:12 -05:00
Lauren Zugai 46b279d33f
Merge pull request #3731 from mozilla/revert-node-10-option
chore(build): [blocked by #3828] Revert allowing Node 10 in check.sh, update docs
2020-01-08 16:03:56 -06:00
Jody Heavener fc265faf40
fix(docs): update description of how to verify your account locally 2019-12-26 13:21:10 -05:00
Lauren Zugai eb9f29001a
chore(docs): Update front-page README from Node 10 to Node 12 2019-12-19 10:59:20 -06:00
Jared Hirsch 4d2e2b2af8
feat(debug): introduce start-dev-debug run scripts to ease node debugging
The actual debuggable node invocation is buried behind a few layers of
indirection; this run script unpacks that indirection, making it really
easy to launch a debuggable content or payments server process.

Also added some docs on debugging server or test node processes.
2019-11-06 10:07:19 -08:00
Danny Coates 60338b5cb7
Merge pull request #3178 from meandavejustice/2579-link-to-package-docs
task(monorepo): link to package docs in main README.md
2019-10-29 13:35:48 -07:00
Dave Justice 6a0cd6557b
task(monorepo): link to package docs in main README.md
- refs #2579
2019-10-29 19:02:06 +00:00
Danny Coates 3c3a888a84
refactor(build): some random dev build changes 2019-10-28 17:27:35 -07:00
Jared Hirsch b73995a08e
fix(docs): Simplify maildev incantation 2019-10-15 09:56:46 -07:00
Jared Hirsch e4444b7341
fix(docs): Dynamically determine mailserver pm2 id 2019-10-15 09:48:22 -07:00
Vlad Filippov 17921f718c
fix(dev): clean up pm2 scripts and docs 2019-10-02 10:56:56 -04:00
Vlad Filippov cf51e1d0bc
chore(dev): use the docker fxa-email-service in local dev 2019-10-02 10:17:40 -04:00
Dave Justice 6e5fc2889c
chore(docs): Create link for maildev local server 2019-07-15 15:40:29 -04:00
Lauren Zugai a039ea8380
docs(root): Add OSX Rust install and 'npm test' info 2019-07-09 11:05:33 -05:00
Ben Bangert cc8f2d897d
feat: add vscode settings and extensions, update docs for docker-ce
Update docs to reflect usage of docker-ce vs. outdated docker.io.

Closes #1072.
2019-07-04 08:47:34 -07:00
Jared Hirsch 026b1f0b05
chore(docs): Explicitly state WSL requirement for Windows users
Fixes #1645.
2019-07-01 10:18:11 -07:00
Barry Chen a1dff1b38f
chore(docs): update Ubuntu installation docs
Include Firefox and OpenJDK JRE in the apt-get install list.

Fixes #1639.

openjdk
2019-06-27 20:35:08 -05:00
Shane Tomlinson 7e0d73e40d
fix(docs): Update the Ubuntu installation docs
The docker deps were out of date, also added a section on
installing rust nightly.
2019-06-24 14:28:26 +01:00
Ben Bangert 095360cbaf
feat(event-broker): add database tests
Adds local google cloud pubsub/firestore emulator and rigs tests into
it.

Issue #1267

Closes #1266
2019-05-29 07:39:13 -07:00
Wil Clouser e761b74671
Add pull reminder badge 2019-05-20 14:56:11 -07:00
Shane Tomlinson 9ccba656a5
fix(docs): Ubdate docs on how to work with Ubuntu
* docker-ce is now docker.io on Ubuntu
* Blurb about installing grunt

Not attached to an issue.
2019-05-20 15:39:26 +01:00
Vlad Filippov 4c2c5d14cc
chore(local-dev): remove unused channelserver from scripts 2019-05-13 16:43:03 -04:00
Shane Tomlinson 597f0b816c
chore(docs): Update README/CONTRIBUTING for monorepo/commit signing.
I moved the CONTRIBUTING.md file from the content server package to
the top level so that it easily discoverable. The README now
contains a link to CONTRIBUTING.md. CONTRIBUTING.md now mentions
GPG signatures as a requirement for opening PRs.

Not attached to an issue.
2019-04-22 13:15:45 +01:00
Les Orchard 50dff5426f
fix(docs): add some dependencies needed for installation on Ubuntu 2019-04-10 23:30:20 -04:00
Danny Coates 52e5d10a43 prepare for monorepo 2019-04-01 10:58:37 -07:00
Shivam Singhal 829f482c22 Update Link for npm-shrinkwrap.json files in Readme mozilla/fxa-local-dev#151)
Update Link for npm-shrinkwrap.json files in Readme mozilla/fxa-local-dev#151)
2019-03-18 12:03:05 -04:00
Edouard Oger dd4439be3b fix(readme): Document how to debug using an Android device mozilla/fxa-local-dev#148) 2019-01-14 14:02:59 -05:00
Vlad Filippov 13dcbd20d5 refactor(oauth): remove oauth internal server mozilla/fxa-local-dev#134) 2018-11-21 14:40:06 -05:00
Vlad Filippov d7be2df672 fix(docker): fix docker download link in the readme 2018-08-21 13:39:44 -04:00
Beatriz Rizental 558ff53fec feat(install): add fxa-email-server to servers mozilla/fxa-local-dev#113)
Fixes mozilla/fxa-local-dev#111
2018-07-19 15:06:05 -04:00
Deepti 9b77059754 #101 Create a script that alerts devs mozilla/fxa-local-dev#109)
Fixes https://github.com/mozilla/fxa-local-dev/issues/101
2018-07-11 10:23:55 -04:00
vladikoff 1b189747d7 Update docs for node 8 2018-04-23 23:13:39 -04:00
Deepti 1caf0a46f5 feat(docker): add mysql docker image, move redis to docker, add mysql server script r=@vladikoff
Fixes https://github.com/mozilla/fxa-local-dev/issues/94
2018-04-23 21:30:10 -04:00
Deepti 73befc8490 fix(docker): fix goaws docker , add syncserver docker mozilla/fxa-local-dev#103) r=@vladikoff 2018-04-11 13:05:37 -04:00
Deepti 0c3b8505dc feat(goaws): fake sqs/sns server, fix exit modes for redis and memcached mozilla/fxa-local-dev#102) r=@vladikoff 2018-04-04 09:29:32 -04:00
Deepti d9de580074 chore(server): Added memcached service r=@vladikoff 2018-03-14 11:27:39 -04:00
Vlad Filippov d47dfef968 Add dev only note 2018-02-08 19:16:29 -05:00