This repo contains 3 main components. You can install dependencies for all component by running yarn
in root folder, or by component by run yarn
in the component folder.
Every component has different command available, and need to be run inside their folder.
A serverless project that bootstraping all aws components.
Command | Description |
---|---|
yarn dev | Run serverless offline |
yarn test | Run unit test |
sls deploy | Deploy the whole serverless project |
Here is the architecture diagram of this project.
A static website to serve the main page.
Command | Description |
---|---|
yarn dev | Run local dev server |
yarn build | Build the production files |
yarn deploy | Sync to the S3 bucket |
A separate project to build a dependency lambda layer, to be consumed by serverless
component. The major dependencies here are puppeteer
, better-sqlite3
, quran font and database.
Before you can build, you need to download the chrome_aws_lambda.zip or (build by yourself), and save it as placequran-layer/chrome_aws_lambda.zip
.
Command | Description |
---|---|
yarn build | Build the layer zip file |
yarn deploy | Publish the layer to aws lambda |