DEV Community

Cover image for Serve Website/Api from your own system
Anshul Gupta
Anshul Gupta

Posted on

3 2

Serve Website/Api from your own system

Have you ever seen a condition when you need to change your design or API frequently to meet the demand?
I did, a few days back. Because of lockdown, My colleagues and I were working on a project from home. We are not in the same local network, so to connect backend and frontend I had to push to code to server then my colleagues start working.
Then I found a service called NGROK

Ngrok is a cross-platform service that enables you to expose your local development server to the internet.

How to use NGROK

  • Go to their website
  • Download setup for your OS and exact it.
  • Open terminal in the same folder and type

./ngrok http port_to_map

example ./ngrok http 3000
Ngrok will provide you an URL. Using which you can access your api/website publically.
Alt Text
If you want to know more you can check this link Host website from local system.
I believe using NGROK is more easy than reading this article.
If you have a better alternative or solution, please let me know. I would love to explore.

▀█▀ █░█ ▄▀█ █▄░█ █▄▀   █▄█ █▀█ █░█
░█░ █▀█ █▀█ █░▀█ █░█   ░█░ █▄█ █▄█

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (1)

Collapse
 
anshul_gupta profile image
Anshul Gupta

Do let me know if you have a better alternative.

Billboard image

Try REST API Generation for Snowflake

DevOps for Private APIs. Automate the building, securing, and documenting of internal/private REST APIs with built-in enterprise security on bare-metal, VMs, or containers.

  • Auto-generated live APIs mapped from Snowflake database schema
  • Interactive Swagger API documentation
  • Scripting engine to customize your API
  • Built-in role-based access control

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay