Skip to content

HTAlvin/Website-View-Counter-API

Repository files navigation

Website-View-Counter-API

A general visit counter API hosted on Replit.com

Feel free to reuse, edit, distribute this project.

To call the view counter API, use the following link:

https://WebViewCounterAPI.alvin-hartantoh.repl.co/api/viewcount/add/<id_name>

Or

https://WebViewCounterAPI.alvin-hartantoh.repl.co/api/viewcount/retrieve/<id_name>

With <id_name> being your given identifier.


Extract venv.rar and ensure venv folder is on the same path as main.py to view the full items

This project is hosted on Replit as a part of my curiosity and contains several main files.

Main files include:

  • main.py
  • data.json
  • dataHandler.py

To host it on your own, upload these files and put up a Secret Environment on the project as follows:

Key -> FLASK_DEBUG

Value -> production

(Note: this may be deprecated anytime in the future)

About

A general visit counter API hosted on Replit.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published