You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Alexander Wong 5f90b98099
add slow, working editor
1 year ago
.circleci multi-stage load cache 1 year ago
.vscode refactoring, added cryptographic helper functions 1 year ago
src add slow, working editor 1 year ago
.babelrc exploring session 1 year ago
.dockerignore refactoring, added cryptographic helper functions 1 year ago
.gitignore Added CircleCI integration, sanity tests 1 year ago
Dockerfile Squashed commit of the following: 1 year ago
LICENSE Initial Commit w/License & basic GraphQL Serverless functionality 1 year ago
README.md Squashed commit of the following: 1 year ago
docker-compose.yml refactoring, added cryptographic helper functions 1 year ago
package-lock.json complete latex/markdown rendering/parsing rewrite 1 year ago
package.json complete latex/markdown rendering/parsing rewrite 1 year ago
serverless.yml added aws iam role permissions 1 year ago
tsconfig.json complete latex/markdown rendering/parsing rewrite 1 year ago
tslint.json really, really kludgy working example 1 year ago

README.md

udia-gql

CircleCI codecov

GraphQL Backend for Udia serverless application.

Quickstart

npm install
# start local Amazon DynamoDb instance
docker run -d -p 8000:8000 amazon/dynamodb-local
# initialize all tables
npm run load_dev_db
npm start -- --stage dev

Deployment

Deployment to AWS Lambda is non-trivial due to the reliance on argon2, a native library bound using node-gyp, and other issues. It is necessary to build and deploy the application from Amazon Linux.

docker build -t udia/amazon_linux .
# ensure dynamodb container is stopped, as serverless requires port 8000
docker run -it -p 8000:8000 -v $HOME/.serverlessrc:/root/.serverlessrc -v $HOME/.aws:/root/.aws udia/amazon_linux /bin/bash
# within the container environment
# npx serverless login
# follow serverless instructions
npm run deploy -- --stage prod

LICENSE

Apache-2.0