1
0
Fork 0
mirror of synced 2024-06-26 10:00:41 +12:00
budibase/examples/nextjs-api-sales
2022-03-08 17:29:49 +00:00
..
config Adding API communications to nextjs app. 2022-03-08 17:29:49 +00:00
db Adding API communications to nextjs app. 2022-03-08 17:29:49 +00:00
definitions Adding API communications to nextjs app. 2022-03-08 17:29:49 +00:00
pages Adding API communications to nextjs app. 2022-03-08 17:29:49 +00:00
public initial version of nextjs app with bulma, for use with BB public API. 2022-03-08 13:43:12 +00:00
styles initial version of nextjs app with bulma, for use with BB public API. 2022-03-08 13:43:12 +00:00
.eslintrc.json initial version of nextjs app with bulma, for use with BB public API. 2022-03-08 13:43:12 +00:00
.gitignore initial version of nextjs app with bulma, for use with BB public API. 2022-03-08 13:43:12 +00:00
next-env.d.ts initial version of nextjs app with bulma, for use with BB public API. 2022-03-08 13:43:12 +00:00
next.config.js Adding API communications to nextjs app. 2022-03-08 17:29:49 +00:00
package.json Adding API communications to nextjs app. 2022-03-08 17:29:49 +00:00
README.md Adding API communications to nextjs app. 2022-03-08 17:29:49 +00:00
tsconfig.json initial version of nextjs app with bulma, for use with BB public API. 2022-03-08 13:43:12 +00:00
yarn.lock Adding API communications to nextjs app. 2022-03-08 17:29:49 +00:00

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

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

You can start editing the page by modifying pages/index.tsx. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.