Sign inSign up

glenndehaan/devinfo

By glenndehaan

•Updated 19 days ago

A system/browser info page used by developers to check browser specifics

Image
0

1.5K

glenndehaan/devinfo repository overview

⁠DevInfo

A system/browser info page used by developers to check browser specifics

Snap Status devinfo Build Status Build Status

⁠Structure

  • Express.JS
  • EJS
  • CSS
  • Simple Node Logger
  • Express User Agent
  • Check IP

⁠Basic Usage

⁠Snapcraft
⁠Install
  • Install the app via snapd:

Get it from the Snap Store

⁠Config

The config can be found here:

/var/snap/devinfo/common/config.json
⁠Log

The log can be found here:

/var/snap/devinfo/common/server.log

Additional snap logs can be accessed by running this command:

sudo journalctl -fu snap.devinfo.devinfo-server
⁠Service

Snap installs a service by default. To get the status of the app run this command:

service snap.devinfo.devinfo-server status

To restart the app:

service snap.devinfo.devinfo-server restart
⁠Docker
  • Download the docker-compose.yml file from the repo
  • Place the file on your server
  • Run docker-compose up
  • Open up a browser and go to http://127.0.0.1:4289⁠
⁠Config

The config can be found here:

./devinfo_docker_config/config.json
⁠Log

The log can be found here:

./devinfo_docker_config/server.log

⁠Development Usage

  • Install NodeJS 8.0 or higher
  • Run npm install in the root project folder
  • Run npm run dev in the root project folder

Then open up a webbrowser and go to: http://localhost:4289

⁠Reports

After a report has been generated the url should look something like this:

https://devinfo.example.com/report/76468dd1-e20c-4085-831b-672489ca886a
⁠Integrations / Raw data

Every report is also available in a JSON format. Just add /raw to the end of a report URL:

https://devinfo.example.com/report/76468dd1-e20c-4085-831b-672489ca886a/raw

This data could also be integrated into other applications that might need it

⁠Customization

By updating the config you are able to override the default logo:

{
  "logo": "<img src='data:image/png;base64,........'/>"
}

By updating the config you are able to override the default footer:

{
  "footer": "Hello World!"
}

⁠License

MIT

Tag summary

Content type

Image

Digest

sha256:8729ae0f7…

Size

28.4 MB

Last updated

19 days ago

docker pull glenndehaan/devinfo