Trying to launch json server in my localhost but states that the local host never sent date - json

i'm new to coding and right now i'm learning to launch json server through VSC in my bootcamp (flatiron). I'm having trouble with opening it in my localhost file in my google browser. I'm running Ubuntu on my PC. when I installed npm install -g json-server it stated that I have 4 moderate severity vulnerabilities.
I have tried to turn off my firewalls and antivirus, cleared the chrome history, tried to change my DNS and had no luck.
I've been stuck with this issue for 2 days now, please help !
[this is what local host is stating in the web browser1
This is the vulnerabilities being shown

Related

Google Chrome remote debugging local domain

I'm developing a website on my local machine using myblog.local as a custom domain for that, I have an apache VirtualHost and the name registered on the hosts file of my mac. The thing is when I try to use chrome remote debugging on my USB connected device using myblog.local as an address pushed using the chrome://inspect tool.
I always a not found error.
My question is, do I need to do something extra in order to remotely debug a custom domain registered on my Mac?
Check out Map to custom local domains.
I got it set up once to work with custom local domains, but it took a bit of experimenting. I definitely needed a proxy server to get it working.
I had exactly the same problem on a PC. I followed #Kayce Basques' Map to custom local domains guide and after some perseverance everything is now working.
Kayce's guide requires a proxy server, I've included my working configuration for the Squid open source and free proxy server below.
Squid installation was easy, I just downloaded and installed a pre-compiled Windows binary file and the server appeared in my Windows system tray. It should hopefully be equally simple for OSX and Linux platforms.
All configuration is done inside a squid.conf file accessible from the Squid menu. I followed this simple guide for a Reverse Proxy. Whilst I included everything in that guide I believe the following line is the critical one to get everything working.
cache_peer 192.168.0.2 parent 80 0 no-query proxy-only originserver
In the above line 192.168.0.2 is my PC's internal IP address and 80 is my Apache virtual host port number defined in my Apache Virtual Hosts file. There's another helpful guide here but that guide omits the originserver option and didn't work on my machine though otherwise helpful.
It seems you do need to be connected by USB cable for this to work so I don't quite understand #asolenzal's comment above. Also each time I changed the configuration I ran Path/to/squid.exe -k reconfigure -n Squid in a command window to reload Squid. You can find that command here.

Syncing MAMP MySQL Database on MEGA

SO I've read countless tutorials and I've spent hours trying to solve this but have run out of ideas. Trying to sync my Wordpress database on MEGA (every other tutorial said dropbox but I got MEGA) and everything but one things works on my windows PC.
I've installed MAMP for both (available for Mac and windows now), made them the same settings and properly integrated MEGASync with it. I created the symlink from both Windows and Mac and updates seem to be happening when I make changes or fool around with wp-config to fix this.
With wordpress I ran the installer on the MAC and it works fine for syncing. On Windows 8.1 however everything functions between MEGA but when connecting to http://localhost:8888 or http://127.0.0.1:8888 Im simply getting a 'Waiting for Connection". Opening phpmyadmin from either computer shows the database I created as well.
Things I've tried.
- Turn off firewall
- Ran a netstat -a command and found it was listening on 0.0.0.0:8888
- Tried to visit localhost:8889 (mysql) and it downloaded a file.
- Made sure my hosts file had 127.0.0.1 localhost and has ::1 localhost
- Can ping localhost and 127.0.0.1
- Checked apache logs and found them empty
Anything I can do to try and log where to narrow down why it's timing out (it seems) on my local windows box?
Not sure if it's much of a solution but did solve this. I uninstalled both MAMP servers (Mac and Windows) and did the entire setup process but started on the Windows machine first this time.
I think the problem was a different structure had been synced (not synced) from both computers (Mac was looking like a different file structure).
No I see the proper contents in both directories.

Is it possible to run polymer locally?

Might be a very stupid question, but right now I'm running a project using Polymer-Project elements on a remote server.
I'm going to be away from network for a while, but I still want to work on this project offline. However, I can't get it running locally on a windows machine, even though all the dependencies are CSS/HTML/JS. Is there something I'm missing? All the paths are relative, and I double-checked them just in case.
Yes, it's possible.
You only need to have a web server running on your computer, as Polymer pages must be served from a web server.
Apache, ISS, Nginx or other HTTP servers will work; If you have no server in your computer, you need to follow the instructions in https://www.polymer-project.org/docs/start/tutorial/intro.html to start a quick Pyhton HTTP server.
Yes it is possible. You just need a local web server.
For Mac/Linux,
Python comes generally pre-installed. Hence, you can directly start a web server from any directory using,
python -m SimpleHTTPServer
If python is not available, then you can install MAMP for Mac and XAMPP for Linux system to start a local web server.
For Windows,
You've got WAMP that does the same thing for windows.
For a lightweight static web server, you could use Mongoose that runs on all three platforms mentioned above.

VisualSVN messed up my localhost in Chrome

EDIT:
The localhost seem to be working fine in my firefox, IE and even Chrome's incognito mode. These is a problem specific to chrome. Any ideas?
PREVIOUS:
I just uninstalled VisualSVN Server from my Windows 7. But now when I try to hit localhost, I get redirected to localhost/svn. I am using WAMP and developing something that requires the root access. I can not put the project in a sub directory. I have also tried netstat -ao but no process is using ports 80 or 443.
You may have solved the problem....but for future, those who came here like me looking for a solution to this, this seems to be a prob for browser cache....clearing browser cache history solves the problem.....did for me...
If you uninstalled VisualSVN Server, then it's some other application which runs on 80 / 443 port that redirects you to /svn. Some steps that may help you to determine the root cause:
Verify that VisualSVN Server has been successfully uninstalled.
Start appwiz.cpl and see whether VisualSVN Server is listed as the installed application,
Start services.msc and see whether "VisualSVN Server" service is listed.
Run netstat -anbv and see which app runs on HTTP(S) port.

Accessing git to install mysql on server on gandi.net

I purchased a Simple Hosting instance using node.js/mysql on gandi.net.
I'm trying to set up my database, but I'm having some issues with connectivity.
I found some sample code to connect and talk to the database (which I set up via PHPMyAdmin), but it requires the mysql module (which I assumed would already be installed on my instance, but since I don't know how any of this works, that's fine).
I get the error:
Error: Cannot find module 'mysql'
in my log file.
I'm at a loss though as to how to actually install the module.
I tried to use their SSH console (via a firefox plugin), but my SSH credentials don't have the permission to run 'npm install mysql' and sudo isn't installed.
I also tried to install Git for Windows from mysisgit but I have zero idea how to connect to my remote server from this tool.
I'm just looking for some advice on how to proceed. I'm totally new and am engaging in learning this for personal development, so I don't have a lot of info on where to turn. Thanks!
The problem was that I wasn't using SSH to install to the correct directory (I was just trying to run it directly when I logged into shell). I needed to navigate into my web/vhosts/default/ directory, then the 'npm install mysql' worked absolutely fine.