Skip to content

topcoderinc/Headlessrefapp

Repository files navigation

About the application-

  • The app is a fork of https://github.com/Rebilly/ReDoc with some little changes/additions made.
  • There is also a demo of how to run the app in chrome headless and capture network and tracing logs.
  • The app is an "OpenAPI/Swagger-generated API Reference Documentation".

Requirements-

  • node 8.4.0+
  • npm 5.6.0+

Installation-

  • To install the dependencies, run npm install.

Running and Testing-

  • Run npm start to start the angular app on localhost:9000 .
  • Run npm run test to test the app and get code coverage result.
  • Run npm run e2e to run e2e tests.

Verification-

  • npm start should run the app on localhost:9000 .

Running the app on headless chrome-

  • Run npm run profile to run the app on headless chrome and capture network and tracing logs.
  • The network logs is generated in networks-datetime.json file in profiling-data directory.
  • The trace logs is generated in trace-datetime.json file in profiling-data directory.
  • to view network file networks-datetime.json, please use json viewer.
  • to view trace logs, Open devtools in chrome, go to Performance tab, click on Load Profile icon and select the trace-datetime.json file generated.
  • The code for it is in chrome-profiler directory.

About

reference app for headless chrome execution

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published