Giter VIP home page Giter VIP logo

mern-app's Issues

Server Already running on Port

Screen Shot 2021-01-04 at 4 25 54 PM

Kill the process manually
For Mac/Linux
To find the process id (PID) associated with the port

โ‡’ lsof -i tcp:3000 
COMMAND PID   USER  FD  TYPE DEVICE             SIZE/OFF NODE NAME 
node    44475 chen5 31u IPv4 0x8b1721168764e4bf 0t0 TCP *:strexec-s (LISTEN)

Then to kill the process
kill -9 44475
Use-9option to make sure the process dies immediately
If you get permissions errors, you may need to use the sudo keyword, for example:
sudo kill -9 44475

Post Routes not working in frontend

When checking post route it would not work on the test URL http://localhost:8000/api/signup

In order to simulate a frontend we need to use Postman to run the controller script & simulate frontend to display that the Signup route is working.

Screen Shot 2021-01-05 at 10 28 19 AM

On Postman we can see that the Signup route is working on the url and the message is being displayed whilst in the browser it displays an error message.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.