Skip to content

DennySORA/Click_Hits_Count

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Click Hits Count

HitCount

Demo

https://hits.dennysora.me/hits?name=ClickHitsCount&chapter=0

Github has cache so...this is not bug, Is feature.

https://hackmd.io/@dennySORA/ClickHitsCount

Simple install

Git

git clone [email protected]:dennySORA/Click_Hits_Count

TLS/SSL

Plesae put TLS/SSL in ssl folder in root folder.

Need to rename server in crt and key.

Example:

    root folder
         |d------- app
         |d------- command
         |d------- infrastructure
         |d------- server
         |d------- ssl (**Need Create**)
              |f------- sercer.key (**Rename**)
              |f------- server.crt (**Rename**)
         |f------- go.mod
         |f------- go.sum
         |f------- main.go

Simple to use

From Local

Create Novel

http://127.0.0.1:8223/create/novel?name=Test
  1. name is any name.

Create Chapter

http://127.0.0.1:8223/create/chapter?name=Test&id=Test&ep=0&chapter=0

SP. id is create novel name

  1. name is any name.
  2. id name need exist in Novel.
  3. ep is any number(int).
  4. chapter is any number(int).

Get all hits ip

http://127.0.0.1:8223/get/all/hits/ip
  1. This is get all hits ip and data.

Get chapter hits data

http://127.0.0.1:8223/get/chapter/hits?chapter_id=&novel_name=&chapter_name=&ip&ep=&chapter=

If name or chapter not input parameters then return all chapter detailed data.

This is get chapter hits counts.

All parameter is can choose.

  1. chapter_id is "Chapter ID(int)".
  2. novel_name is "Novel Name(string)".
  3. chapter_name is "Chapter Name(string)".
  4. ip is "IP(string)".
  5. ep is "EP(int)".
  6. chapter is "Create chapter number(int)".

Get chapter hit ip detailed data

http://127.0.0.1:8223/get/chapter/hits?chapter_id=&novel_name=&chapter_name=&ip&ep=&chapter=

This is get chapter ip hits.

All parameter is can choose.

  1. chapter_id is "Chapter ID(int)".
  2. novel_name is "Novel Name(string)".
  3. chapter_name is "Chapter Name(string)".
  4. ip is "IP(string)".
  5. ep is "EP(int)".
  6. chapter is "Create chapter number(int)".

Get novel hit count

http://127.0.0.1:8223/get/novel/hits?novel_name=

This is get novel hits counts.

All parameter is can choose.

  1. novel_name is "Novel name(string)".

Get episode hit count

http://127.0.0.1:8223/get/ep/hits?novel_name=

This is get episode hits counts.

All parameter is can choose.

  1. novel_name is "Novel name(string)".

From Open

https://127.0.0.1:8123/hits?name=Test&chapter=0
  1. name is "Novel Name".
  2. chapter is "Create chapter number(int)".

Contributors