This VS Code extension allows you to easily create and run a local server directly from your editor. You can start and stop the server with simple commands, and it supports custom port selection.
🚀 Features
Start a local server with a custom port.
Serve basic HTML responses.
Stop the server at any time.
UTF-8 encoding support to prevent character encoding issues.
📥 Installation
Clone this repository:
git clone https://github.com/your-repo/schema-util-server.git
cd schema-util-server
Install dependencies:
npm install
Compile the TypeScript code:
npx tsc
Open the project in VS Code and press F5 to run the extension.
🛠 Usage
Open VS Code.
Press Ctrl + Shift + P and run Start Local Server.
Enter a port number or press Enter to use the default (3000).
Open your browser and visit:
http://localhost:<your-port>/
To stop the server, run Stop Local Server from the command palette.
📦 Packaging & Publishing
To package the extension as a .vsix file:
vsce package
To publish it to the VS Code Marketplace:
vsce publish
Türkçe 🇹🇷
📌 Hakkında
Bu VS Code uzantısı, doğrudan editörünüzden kolayca yerel bir sunucu oluşturmanızı ve çalıştırmanızı sağlar. Sunucuyu basit komutlarla başlatıp durdurabilir ve özel port seçebilirsiniz.
🚀 Özellikler
Özel bir port ile yerel sunucu başlatma.
Temel HTML yanıtları sunma.
Sunucuyu istediğiniz zaman durdurma.
Karakter kodlaması sorunlarını önlemek için UTF-8 desteği.
📥 Kurulum
Bu projeyi klonlayın:
git clone https://github.com/your-repo/schema-util-server.git
cd schema-util-server
Gerekli bağımlılıkları yükleyin:
npm install
TypeScript kodlarını derleyin:
npx tsc
Projeyi VS Code içinde açın ve F5 tuşuna basarak uzantıyı çalıştırın.
🛠 Kullanım
VS Code'u açın.
Ctrl + Shift + P tuşlarına basın ve Start Local Server komutunu çalıştırın.
Bir port numarası girin veya varsayılan (3000) portu kullanmak için Enter tuşuna basın.
Tarayıcınızı açarak şu adresi ziyaret edin:
http://localhost:<port-numaranız>/
Sunucuyu durdurmak için Stop Local Server komutunu çalıştırabilirsiniz.