https://github.com/luciagirasoles/apiserver
Extract information from given Domain to return their servers info from whois & html command in golang
https://github.com/luciagirasoles/apiserver
bootstrap4 bootstrapvue cockroachdb go go-chi golang vuejs
Last synced: 3 months ago
JSON representation
Extract information from given Domain to return their servers info from whois & html command in golang
- Host: GitHub
- URL: https://github.com/luciagirasoles/apiserver
- Owner: luciagirasoles
- Created: 2020-01-09T08:48:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-21T01:07:41.000Z (over 6 years ago)
- Last Synced: 2025-08-20T12:38:01.189Z (11 months ago)
- Topics: bootstrap4, bootstrapvue, cockroachdb, go, go-chi, golang, vuejs
- Language: Go
- Size: 5.35 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# apiServer
Sample APP to obtain information from domain.
## Tecnologies
- DB
- Golang
- VueJS (no CLI)
- Bootstrap Vue
## API ENDPOINTS
### All Posts
- Path : `/log`
- Method: `GET`
- Response: `200`
### Create Post
- Path : `/newSearch`
- Method: `POST`
- Fields: `domain`
- Response: `201`
## Required Packages
- Dependency management
- [dep](https://github.com/golang/dep)
- Database
- [CockRoachDB - pq driver](https://github.com/lib/pq)
- Routing
- [chi](https://github.com/go-chi/chi)
## Ports:
- [DB] 27257 & 25258
- [Go] 8005
## Quick Run Project
1. First clone the repo then go to apiServer folder. After that run .apiserver. Make sure you have installed and configured "go" and "dep" in your machine.
FrontEnd is located on public/index
```
git clone https://github.com/luciagirasoles/apiServer.git
cd apiServer
dep ensure
go build . && .apiServer
```
2. Run CockRoachDB on apiServer file.
```
apiServer/cockroach start --insecure --http-addr=localhost:26258 --background
```
Copy what is in servers.sql inside cockroackDB console and quit with "\q"
```
cockroach sql --insecure
```
3. Run index.html, it contains all required for styles and methods.