A simple API to fetch books from Notion Client.
Notion Cloudflare Workers is a lightweight API designed to fetch book records from Notion Client. It is built using Cloudflare Workers and utilizes PNPM
as the package manager for better performance and efficiency.
- Fetch book data from Notion.
- Built with TypeScript for type safety.
- Uses
PNPM
for fast dependency management. - Cloudflare Workers integration for serverless deployment.
Ensure you have PNPM installed on your system. Then, clone the repository and install dependencies:
pnpm install
To start the development server, run:
pnpm watch
To check and fix linting issues:
pnpm lint
To format the code:
pnpm format
pnpm build
- Build the project usingtsup
.pnpm dev
- Start the development server withtsup
.pnpm wrangler:dev
- Start the development server withwrangler
.pnpm deploy
- Deploy the API to Cloudflare Workers.pnpm lint
- Run ESLint to check code quality.pnpm format
- Format the code using ESLint.pnpm type-check
- Perform TypeScript type checking.pnpm watch
- Start the development server withtsup
andwrangler
.
Before using the API, ensure that your Notion API credentials are properly set up. This can be configured in your environment variables.
Deploy the API using Cloudflare Workers with the following command:
pnpm deploy
This project is licensed under the MIT License. See the LICENSE file for details.