Coder Social home page Coder Social logo

vikibeta / postcode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rohinivsenthil/postcode

0.0 0.0 0.0 368 KB

visual studio code extension to create and test simple and complex HTTP/s requests

Home Page: https://marketplace.visualstudio.com/items?itemName=rohinivsenthil.postcode

License: MIT License

JavaScript 5.51% TypeScript 76.50% CSS 17.99%

postcode's Introduction

Postcode

API client for VS code ๐Ÿ“ฆ


Postcode is a Visual Studio Code extension that can be used to create and test simple and complex HTTP/s requests, as well as view responses. You can find the extension available here.


Release: 1.3.3

Highlighted Features

  • Intuitive UI/UX similar to Postman fitting seamlessly with any VSCode theme
  • Supports GraphQL requests
  • Supports code snippet generation from requests

Quick start

Step 1. Install the Postcode extension for Visual Studio Code
Step 2. Click on the Postcode icon in the side panel OR run the following command Postcode: Create Request
Step 3 Create or test your HTTP/s requests and hit Send to see the responses

Commands

Command Description
Postcode: Create Request Opens a new Postcode tab to create and test requests

Issues, feature requests, and contributions

Issues

  • If you come across a problem with the extension, please file an issue
  • For list of known issues, please check the issues tab

Feature requests

  • Find planned features for future releases marked as feature under issues tab.
  • For new feature requests, please file an issue

Contributions

Contributions are always welcome!

Running the extension locally for development

  1. Clone the repository and install dependencies by running yarn install
  2. Press F5 to open a new window with your extension loaded.
  3. Run your command from the command palette by pressing (Ctrl+Shift+P or Cmd+Shift+P on Mac) and typing Postcode: Create Request.

Folder structure

  • package.json - this is the manifest file in which you declare your extension and command. The plugin registers a command and defines its title and command name. With this information VS Code can show the command in the command palette.
  • webview: folder where you will find entire React code
  • src/extension.ts: this is the main file where you will provide the implementation of your command. The file exports one function, activate, which is called the very first time your extension is activated (in this case by executing the command). Inside the activate function we call registerCommand. We pass the function containing the implementation of the command as the second parameter to registerCommand.

Making changes

  • You can relaunch the extension from the debug toolbar after changing code in src/extension.ts.
  • You can also reload (Ctrl+R or Cmd+R on Mac) the VS Code window with your extension to load your changes.

Related

  • Read the launch blog post on Medium
  • Featured #11 Product of the day on Product Hunt
  • Featured in Trending this week on Visual Studio Code Marketplace

postcode's People

Contributors

mukundan314 avatar rohinivsenthil avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.