arleybri18 / api_rest_GOlang_Vue

Backend Api rest with GO lang and Frint End with Vuejs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rest API GO - Consume With App Vue

This is a project test implemented in GO language with BD cockroach and using teh framework Vuejs.

Getting Started

Make a copy of this project up and compile C files using gcc compiler see installing section.

Prerequisites

You need the follow software to run the the program:

Configuration

Keep in mind the following recommendations:

1 - Port of listening backend server:

Change in the file main.go in this variable
	port := ":5000"

2- Values to bd server: Change in the main.go and insertData.go files those global variables:

    var user string = "yonydb"
    var host_server string = "localhost"
    var port_server string = "26257"
    var name_bd string = "infodomains"

App VUE js

The code of App web it's in the infoDomainsApp folder Change in the following files, the port of listening of the REST API app::

infoDomainsApp\src\components\DomainInfo.vue

```
var url = 'http://localhost:5000/domain/'+this.domain;
```

infoDomainsApp\src\components\Report.vue

```
var url = 'http://localhost:5000/report/';
```

Warning

If you have a problem with CORS domain policy, install the next extension for google chrome. Allow CORS: Access-Control-Allow-Origin

Authors

About

Backend Api rest with GO lang and Frint End with Vuejs


Languages

Language:JavaScript 49.2%Language:Go 30.8%Language:Vue 17.1%Language:HTML 2.9%