<<<<<<< HEAD #My first Api restful
components:
-
Go: -Chi -Cockroach - Posgresql -net/http -whois-go -other things.
-
HTML/Boostrap 4/Javascript -Vue js
Compiling:
-
Creating one-clustring of one node:
$ cockroach start-single-node --insecure --store=json-test --listen-addr=localhost:26257 --http-addr=localhost:8080 --background $ cockroach sql --insecure
>CREATE USER IF NOT EXISTS maxroach; >CREATE DATABASE bank; >GRANT ALL ON DATABASE bank TO maxroach; > \q
For entering to database from terminal:
$ cockroach sql --insecure -e --database=bank
-
compling golang from terminal and getting up the localhost server:
$ go1.10.7 run api_rest.go
and all right!! watch at the browser, and put por instance:
"http://localhost:8000/=example.com"
- Finally in other port open "index.html", and experiment with my app. =======
7ab50243970bad0744dcf16e3658a3a08e2fd502