transformers.js/examples/next-server
Joshua Lochner 09ff83b90e
Create example next.js application (Closes #210) (#211)
* Create example next app

* Link to example app

* Update next configs

* Create tutorial for next.js application

* Update next.js tutorial

* Rename project `next` -> `next-client`

* Clone `next-server` from `next-client`

* Update next.config.js for server-side inference

* Create basic server-side next.js application

* Update example links

* Update subheading for client-side next.js app

* Update next.config.js files

* Create example Dockerfile

* Update next tutorial to include server-side inference

* Improve wording

* Update Dockerfile

* Add step to create a Dockerfile

* Update examples snippet

* Fix wording
2023-07-26 01:48:13 +02:00
..
public Create example next.js application (Closes #210) (#211) 2023-07-26 01:48:13 +02:00
src/app Create example next.js application (Closes #210) (#211) 2023-07-26 01:48:13 +02:00
.eslintrc.json Create example next.js application (Closes #210) (#211) 2023-07-26 01:48:13 +02:00
.gitignore Create example next.js application (Closes #210) (#211) 2023-07-26 01:48:13 +02:00
Dockerfile Create example next.js application (Closes #210) (#211) 2023-07-26 01:48:13 +02:00
README.md Create example next.js application (Closes #210) (#211) 2023-07-26 01:48:13 +02:00
jsconfig.json Create example next.js application (Closes #210) (#211) 2023-07-26 01:48:13 +02:00
next.config.js Create example next.js application (Closes #210) (#211) 2023-07-26 01:48:13 +02:00
package-lock.json Create example next.js application (Closes #210) (#211) 2023-07-26 01:48:13 +02:00
package.json Create example next.js application (Closes #210) (#211) 2023-07-26 01:48:13 +02:00
postcss.config.js Create example next.js application (Closes #210) (#211) 2023-07-26 01:48:13 +02:00
tailwind.config.js Create example next.js application (Closes #210) (#211) 2023-07-26 01:48:13 +02:00

README.md

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

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

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

You can start editing the page by modifying app/page.js. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.