Skip to content

노션의 nested 페이지 구조를 가져와 브라우저에서 마인드맵을 생성하는 프로젝트

Notifications You must be signed in to change notification settings

kimkun07/mindmap_mind-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

mind-api is an API for MindElixir Project.
It is used for an endpoint of server providing data for a mindmap.

Related Link

Table of Contents

How to use

  • Install mind-api
  • Server
    • Provide MindResponse
  • Client
    • Fetch MindResponse

Install mind-api

npm i -D @kimkun07/mindmap_mind-api

Provide MindResponse

import { MindResponse } from "@kimkun07/mindmap_mind-api";

server.get("/", async function (req: Request, res: Response) {
  let result: MindResponse = {
    status: "Page Retrieve Success",
    rawNodeData: await get_node(process.env.NOTION_PAGE_ID_ROOT!), // NodeObj
  };
  res.json(result); // json of MindResponse
});

Fetch MindResponse

import { MindResponse } from "@kimkun07/mindmap_mind-api";

let httpResponse = await fetch(url);
let mindResponse: MindResponse = await httpResponse.json();

How to develop

  1. Publish to npm
    npm run build
    npm version patch
    npm publish --access public
  2. Update from usage
    npm outdated
    npm update @kimkun07/mindmap_mind-api

About

노션의 nested 페이지 구조를 가져와 브라우저에서 마인드맵을 생성하는 프로젝트

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published