Skip to content

PHZINNxx/localhost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

🚀 localhost: A Simple Subdomain to Port Redirector

Welcome to the localhost repository! This project allows you to map subdomains to specific ports on your local machine, making development smoother and more organized.

localhost

Table of Contents

Introduction

When developing web applications, you often work with multiple services running on different ports. Accessing these services can become cumbersome. This tool helps you streamline access by allowing you to use subdomains instead of port numbers. For example, instead of typing localhost:3000, you can simply type subdomain.localhost.

Features

  • Easy mapping of subdomains to local ports.
  • Lightweight and simple to set up.
  • Works seamlessly with existing local development setups.
  • Customizable configuration options.

Installation

To get started with localhost, follow these steps:

  1. Clone the Repository
    Open your terminal and run:

    git clone https://github.com/PHZINNxx/localhost.git
    cd localhost
  2. Install Dependencies
    Make sure you have Node.js installed. Then run:

    npm install
  3. Run the Application
    Start the application with:

    npm start

Usage

To use localhost effectively, you need to configure your subdomains. Here’s how you can do that:

  1. Open the configuration file located in the config directory.

  2. Add your subdomain and corresponding port. For example:

    {
        "subdomain": "app",
        "port": 3000
    }
  3. Save the file and restart the application.

Now, you can access your app using app.localhost.

Examples

Here are a few examples of how you can set up your subdomains:

  • API Service
    Map api.localhost to port 4000.

  • Frontend Application
    Map frontend.localhost to port 5000.

Contributing

We welcome contributions! If you would like to help improve this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/YourFeature).
  3. Make your changes.
  4. Commit your changes (git commit -m 'Add some feature').
  5. Push to the branch (git push origin feature/YourFeature).
  6. Open a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Releases

To download the latest version, visit our Releases page. Download the appropriate file for your system and execute it to get started.

If you want to check for updates, visit the Releases section regularly.

Acknowledgments

  • Thanks to the open-source community for their support and contributions.
  • Special thanks to contributors who have helped improve this project.

Contact

For any questions or feedback, feel free to reach out via the issues section of the repository.


Thank you for checking out the localhost project! We hope it makes your development experience easier and more enjoyable. Happy coding!