---
title: "Discussion on \"How to setup URL domain in local development using NodeJs\" | Hashnode"
description: "Discussion on \"How to setup URL domain in local development using NodeJs\". Hello everyone, this will be a very simple and straight forward tutorial. As a backend developer, anytime I create a new project to make sure everything is working fine we are instructed to hit a URL like localhost:3000 or whatever port you set your ..."
url: "https://hashnode.com/posts/how-to-setup-url-domain-in-local-development-using-nodejs/5e3453128a805c490b5a806d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to setup URL domain in local development using NodeJs](https://umaradam.xyz/how-to-setup-url-domain-in-local-development-using-nodejs?utm_source=hashnode&utm_medium=feed)

Hello everyone, this will be a very simple and straight forward tutorial. As a backend developer, anytime I create a new project to make sure everything is working fine we are instructed to hit a URL like localhost:3000 or whatever port you set your ...

Jan 31, 2020 · umaradam.xyz  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#domain](https://hashnode.com/tag/domain)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#expressjs-cilb5apda0066e053g7td7q24](https://hashnode.com/tag/expressjs-cilb5apda0066e053g7td7q24)

## Written by

[Umar Adam](https://hashnode.com/@mash)

@mash · Abuja, Nigeria

  
[View profile](https://hashnode.com/@mash)

Backend Developer

I am a Backend Developer(NodeJs) with an interest in Machine learning, Big data analysis and not surprisingly Artificial Intelligence

## Responses 2

Markdown supported · ⌘↵ to post

[Darran Thompson](https://hashnode.com/@Caustix)

[Oct 28, 2020](https://hashnode.com/posts/how-to-setup-url-domain-in-local-development-using-nodejs/5e3453128a805c490b5a806d/comment/5f9955905428fb2ed726515d)

Hey Umar, I appreciate your short tutorial, it has helped me leaps! I have a question regarding servers. My background is Ruby on Rails and I have started with Next.js and React.

I have your example running perfectly, but I am a little stuck. I plan to deploy to an apache server (or nginx), but I am a little lost where to begin, I have Google for the past few days and found sparse information regarding setting up on a production server?

I assume with your example I would use something like "monit" to monitor the process running?

Any pointers would again be appreciated.

[Harshita Poojary](https://hashnode.com/@hp250497)

[Apr 27, 2020](https://hashnode.com/posts/how-to-setup-url-domain-in-local-development-using-nodejs/5e3453128a805c490b5a806d/comment/5ea702520135fc4176630670)

I started the apache in the pc , added a domain in /etc/hosts.

![Screenshot from 2020-04-27 21-32-54.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1588003395804/MZEI4a5y1.png) Then I ran the proxy file, I got the following error :

events.js:288 throw er; // Unhandled 'error' event ^

Error: listen EADDRINUSE: address already in use :::80

code: 'EADDRINUSE',

errno: 'EADDRINUSE',

syscall: 'listen',

address: '::',

port: 80

Do i need to stop apache?
