Skip to content

portchecker.io is a free online utility to check the port status of a given hostname or IP address.

License

Notifications You must be signed in to change notification settings

dsgnr/portchecker.io

Repository files navigation

Welcome to portchecker.io 👋

CodeQL

This project aims to be a simple, go-to place for querying the port status for a provided hostname or IP address.

Demo

API Specs

The API documentation is automatically generated by FastAPI. Routes and specification can be found at https://portchecker.io/api/v1/docs

Author

👤 Dan Hand

Getting Started

The project consists of two containers. The front-end is a static HTML file sat behind Nginx. The back-end is a simple API built using FastAPI.

The project aims to be super simple, with low overhead and also the least amount of dependencies as possible.

The project contains both production and development stacks. The production stack utilises Gunicorn as the API's gateway interface, whereas development utilises uvicorn.

Bringing up the development stack:

$ docker-compose -f docker-compose-dev.yml up  --build

Bringing up the API outside of Docker;

$ cd backend/api; uvicorn main:app --reload

Bringing up the UI outside of Docker;

$ cd frontend/web; yarn install; yarn dev

The port checker API will be running at http://0.0.0.0:8000 and the front-end will be running at http://0.0.0.0:8080.

Configuration

The following configuration options are available. These would be set within the Docker compose files.

API:

  • ALLOW_PRIVATE (boolean, default false)

UI:

  • DEFAULT_PORT (integer, default 443)

🤝 Contributing

Contributions, issues and feature requests are welcome.
Feel free to check issues page if you want to contribute.

Show your support

Give a ⭐️ if this project helped you!

Running websites such as this comes with associated costs. Any donations to help the running of the site is hugely appreciated!

ko-fi

The site is located on Digital Ocean. You can use the following referral link to get some credit when joining:

DigitalOcean Referral Badge

📝 License

Copyright © 2019 Dan Hand.
This project is MIT licensed.



This README was generated with ❤️ by readme-md-generator