Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Json editor #284

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

williamsyang-work
Copy link
Contributor

@williamsyang-work williamsyang-work commented Nov 25, 2024

Config Editor POC Setup Guide

Project Structure

exploration/
├── test-server/
│   ├── server.js
│   ├── package.json
│   └── data/
└── json-editor.ts

Setup Steps

In json-server dir:

  1. Start test server:
cd test-server
yarn
yarn dev

Server runs on http://localhost:3002

From root dir:

  1. Start extension development:
yarn
yarn watch
  1. Launch extension:
  • Press F5 in VS Code
  • Use Command Palette (Ctrl+Shift+P)
  • Run "Open JSON Configuration" or "Open JSON Configuration from File"

Available Endpoints

  • GET /schema - Get schema
  • GET /config - Get config
  • POST /config - Save config
  • POST /schema - Update schema
  • GET /reset - Reset defaults

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant