Skip to content

jhordyabonia/truora

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Truora

  1. Install CockroachDB.

  2. Start up Cockroach a secure or insecure local cluster:

    • cockroach start --insecure --background --advertise-host= <[host]>
    • cockroach sql --insecure
    • CREATE USER IF NOT EXISTS jhordy;

    • CREATE DATABASE truora;

    • GRANT ALL ON DATABASE truora TO jhordy;

    • \q

  3. Install Whois

    • sudo apt-get install whois
  4. Install library go - Cockroach

    • go get -u github.com/lib/pq
  5. Install library to go - Router CHI

    • go get -u github.com/go-chi/chi
  6. Build

    • go build
  7. Run

    • ./truora
  8. Test (To test use browser or postman)

    • http://<[host]>:8090/api Index Api (API Truora-Whois)
    • http://<[host]>:8090/api/analyce/<[domain]> Analizer Domain
    • http://<[host]>:8090/api/list

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages