/Procise

An AI powered Hackernews summarizer!!!

Primary LanguageTypeScript

This is a Next.js project bootstrapped with c3.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

Deployment

This project is deployed on zerops

KV Example

c3 has added for you an example showing how you can use a KV binding.

In order to enable the example:

  • Search for javascript/typescript lines containing the following comment:
    // KV Example:
    and uncomment the commented lines below it.
  • Do the same in the wrangler.toml file, where the comment is:
    # KV Example:
    
  • If you're using TypeScript run the cf-typegen script to update the env.d.ts file:
    npm run cf-typegen
    # or
    yarn cf-typegen
    # or
    pnpm cf-typegen
    # or
    bun cf-typegen

After doing this you can run the dev or preview script and visit the /api/hello route to see the example in action.

Finally, if you also want to see the example work in the deployed application make sure to add a MY_KV_NAMESPACE binding to your Pages application in its dashboard kv bindings settings section. After having configured it make sure to re-deploy your application.