mirror of
https://github.com/status-im/universal-links-handler.git
synced 2025-02-23 08:08:08 +00:00
The code checks for: - Presence of all three URL arguments: `a`, `a1`, `a2` - Verifies that `a`(admin key...) is 132 characters long - Verifies that `a2`(chat key...) is 169 characters long - Verifies that `a1` does not contain HTML before rendering Each case is tested, including the valid one. Signed-off-by: Jakub Sokołowski <jakub@status.im>
Universal links handler
App to handle universal links served at http://join.status.im
Getting Started
Prerequisites
You need to have docker
& docker-compose
installed
Development
Start docker-compose
with:
docker-compose -p whatever up
It will listen on port 8080
and mount the correct volumes so any change
is then reflected.
node_modules
are mounted as a volume so in case you change package-lock.json
will need to be re-installed in the docker container.
Production locally
Start docker-compose
with:
docker-compose -p whatever -f docker-compose.yml up
Don't forget to rebuild the image if you made any changes
docker-compose -p whatever -f docker-compose.yml build
It will build the image and start the container listening on port 8080
Testing
yarn run tests
CI: https://jenkins.status.im/job/misc/job/universal-links-handler/
Deployment
The code is automatically deployed when pushed to master
Description
Languages
EJS
65.1%
JavaScript
34.7%
Dockerfile
0.2%