A service that makes license files readable using headless Chrome.
- This project uses TypeScript and Node.
- Download
fnmand runfnm installto install a suitable version of Node. - Run
npm installto setup dependencies. - Use Visual Studio code to debug and test.
Run the web service locally using the provided package scripts.
Run npm run-script debug and this spins up a local web server. You can use Visual Studio code to attach to this process.
nodemon and tsc --watch compiles and restarts your service as you are making changes to the source code automatically in debug mode.
curl -d '{"url": "https://opensource.org/licenses/bsd-license.php"}' -H 'Content-Type: application/json' -X POST 'http://localhost:8080/convert/licenses'
- Install the
gcloudCLI. - Run
npm run-script setupGcpProjectto setup credentials. - Run
npm run-script deployto deploy the project to App Engine.
Using Puppeteer v18.2.1 only because npm post install scripts for Puppeteer 19.x.x have been broken for App Engine standard.
More context is here.