Code for creating, validating and uploading NeTEx data.
The repo is split into three components:
Netex Convertor
: TypeScript Lambda responsible for generating NeTEx from user uploaded data in S3 and public reference data stored in the databaseNetex Validator
: Python Lambda responsible for validating the NeTEx against the published XSD and uploading to another S3 bucket if the validation is succesfulNetex Emailer
: TypeScript Lambda responsible for emailing validated Netex to user
This tool uses the Serverless Framework to manage deployments to AWS and it is split into two serverless.yml files, one for the TypeScript Lambdas and one for the Python Lambda.
To deploy these lambdas directly, you will need to have the following requirements:
- Serverless CLI
- AWS Credentials setup on your machine
- Infrastructure in
fdbt-aws
repo all deployed
In the root directory, run:
npm install
sls deploy --stage={STAGE_TO_DEPLOY_TO}
In the root directory, run the following:
cd src/netex-validator
npm install
sls deploy --stage={STAGE_TO_DEPLOY_TO}