API GEO - Paraguay
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
db
.gitignore
LICENSE
database.js
package-lock.json
package.json
readme.md
server.js

readme.md

Instalacion

npm install

Base de datos MySQL

Entramos a la consola de MySQL

mysql -u root -p

Creamos la base de datos paraguay

CREATE DATABASE paraguay CHARACTER SET utf8 COLLATE utf8_general_ci;
exit

Importamos la base de datos paraguay

mysql -u root -p paraguay < db/paraguay.sql
mysql -u root -p paraguay < db/distritos.sql

Configuracion (base de datos MySQL)

server.js

    host: 'localhost',
    user: 'root',
    password : '123456',
    port : 3306,        // Puerto mysql
    database: 'paraguay'

Hacer correr la app

node server.js

Abrir navegador web

Utilizacion de la api