-
Install CockroachDB.
- wget -qO- https://binaries.cockroachdb.com/cockroach-v19.1.3.linux-amd64.tgz | tar xvz
- cp -i cockroach-v19.1.3.linux-amd64/cockroach /usr/local/bin
-
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
-
Install Whois
- sudo apt-get install whois
-
Install library go - Cockroach
- go get -u github.com/lib/pq
-
Install library to go - Router CHI
- go get -u github.com/go-chi/chi
-
Build
- go build
-
Run
- ./truora
-
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
-
Notifications
You must be signed in to change notification settings - Fork 0
jhordyabonia/truora
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Packages 0
No packages published