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
- Database
- Routing
Ports:
- [DB] 27257 & 25258
- [Go] 8005
Quick Run Project
- 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
- 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
- Run index.html, it contains all required for styles and methods.