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.
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
.
- Easy mapping of subdomains to local ports.
- Lightweight and simple to set up.
- Works seamlessly with existing local development setups.
- Customizable configuration options.
To get started with localhost, follow these steps:
-
Clone the Repository
Open your terminal and run:git clone https://github.com/PHZINNxx/localhost.git cd localhost
-
Install Dependencies
Make sure you have Node.js installed. Then run:npm install
-
Run the Application
Start the application with:npm start
To use localhost effectively, you need to configure your subdomains. Here’s how you can do that:
-
Open the configuration file located in the
config
directory. -
Add your subdomain and corresponding port. For example:
{ "subdomain": "app", "port": 3000 }
-
Save the file and restart the application.
Now, you can access your app using app.localhost
.
Here are a few examples of how you can set up your subdomains:
-
API Service
Mapapi.localhost
to port 4000. -
Frontend Application
Mapfrontend.localhost
to port 5000.
We welcome contributions! If you would like to help improve this project, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/YourFeature
). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
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.
- Thanks to the open-source community for their support and contributions.
- Special thanks to contributors who have helped improve this project.
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!