This Nodejs piece of code works locally. To make it work on Heroku, you need to add the https://github.com/uhray/heroku-buildpack-mongo.git buildpack.
- Have a free Heroku account
- Have a free MONGODB cluster
- Have a free Amazon S3 bucket
// in a new folder be sure to run "npm init -y" and "npm install puppeteer" | |
const puppeteer = require("puppeteer") | |
const fs = require("fs/promises") | |
async function start() { | |
const browser = await puppeteer.launch() | |
const page = await browser.newPage() | |
await page.goto("https://learnwebcode.github.io/practice-requests/") | |
const names = await page.evaluate(() => { |
This Nodejs piece of code works locally. To make it work on Heroku, you need to add the https://github.com/uhray/heroku-buildpack-mongo.git buildpack.
Thank you for participating in our event. We hope you had as much fun attending as we did organizing it.
We want to hear your honest feedback so we can keep improving ourselves. Please fill this quick survey and let us know your thoughts (your answers will be confidential).
It will take only two minutes to fill our Feedback Form
Community: ReactKHI
Event: ReactKHI Meetup # 05 - Virtual
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |