timvisee 94e826e1e2 Fix incorrect development server port in documentation 3 years ago
..
bin 94e826e1e2 Fix incorrect development server port in documentation 3 years ago
middleware 81e9d81dab implemented download tokens 3 years ago
routes 246e2c8db0 set downloadMetadata.status to 404 on unfound downloads. fixes #1501 3 years ago
storage 81e9d81dab implemented download tokens 3 years ago
amplitude.js 8ad4597114 replaced fxa-geodb with load balancer header 4 years ago
clientConstants.js 1c44d1d0f9 added /config endpoint, use fewer globals (#1172) 5 years ago
config.js 81e9d81dab implemented download tokens 3 years ago
fxa.js 017bb0d146 wrap openid-config request in try/catch 5 years ago
initScript.js 807ecff471 updated sentry libs from raven to @sentry 4 years ago
keychain.js 9891d1f0ba Begin implementing a reporting mechanism 4 years ago
layout.js 3e14d3049d only index / route 5 years ago
limiter.js 7f9674f494 fixed size limit on server to include crypto overhead 5 years ago
locale.js c80f9ada65 updated deps 5 years ago
log.js 53e822964e a few changes to make A/B testing easier 6 years ago
metadata.js 81e9d81dab implemented download tokens 3 years ago
readme.md f3fb433531 Fix link to dev.js and prod.js files. 5 years ago
state.js 17057e725d add fxa_required option 4 years ago

readme.md

Server Code

The server provides the API, serves static assets, and renders the pages for Send. The production entrypoint is prod.js and the development entrypoint is dev.js via webpack-dev-server.

Server configuration

config.js contains the schema for our configuration options. Environment variables are the preferred method for setting configuration.

Middleware

Contains authentication and localization middleware.

Routes

Contains all the server routes and handlers for the API and pages

Storage

Contains implementations of possible storage engines for the files and metadata