Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dbritto-dev/aws-lambda-puppeteer-bootstrap

Boilerplate for use Puppeteer on AWS Lambda
https://github.com/dbritto-dev/aws-lambda-puppeteer-bootstrap

aws-lambda bootstrap hacktoberfest puppeter scraper scraping scraping-websites

Last synced: 23 days ago
JSON representation

Boilerplate for use Puppeteer on AWS Lambda

Awesome Lists containing this project

README

        

Boilerplate for a Puppeteer on AWS Lambda


![](https://www.pressmantech.com/wp-content/uploads/PoL.png)

🚀 Bootstrap your Puppeteer function within seconds

Basic starter kit for Puppeteer on AWS Lambda

## Requirements

[Yarn](https://yarnpkg.com/lang/en/) to install npm packages:

```sh
npm install -g yarn
```

## Getting started

```sh
# 1. Clone the project
git clone https://github.com/danilobrinu/aws-lambda-puppeteer-bootstrap.git

# 2. Navigate to the new project
cd aws-lambda-puppeteer-bootstrap

# 3. Install npm packages
yarn install

# 4. Code and upload to AWS Lambda
# zip the content of the dir and upload to AWS Lambda
```

> Note: If the zip size is more than 10mb you need upload the zip to s3 and use the link in your AWS Lambda

## Documentation

### Project structure

| File name               | Description         |
| :-- | :-- |
| `├── .editoconfig` | Use this file to configure your editor |
| `├── .gitignore` | User this file to configure ignore files by git |
| `├── .prettierc` | Use this file to configure the prettier formatter |
| `├── index.js` | _The template for your AWS Lambda function_ |
| `├── package.json` | The npm package list |
| `├── README.md` | The documentation |
| `└── yarn.lock` | The yarn lock file |

## Contributing

Your feedback is **very helpful**, please share your opinion and thoughts! If you have any questions or want to contribute yourself.