A basic testing playground for https://rapid.cincinnati.ventures/ with NextJS switched from the pages router to the app router
Carsten Kragelund ffa442b862 | ||
---|---|---|
app | ||
components | ||
pages/api | ||
public | ||
styles | ||
.editorconfig | ||
.eslintrc.json | ||
.gitignore | ||
.prettierignore | ||
.prettierrc | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE | ||
NOTES.org | ||
README.org | ||
next.config.js | ||
package-lock.json | ||
package.json | ||
postcss.config.js | ||
rapid.toml | ||
tailwind.config.ts | ||
tsconfig.json |
README.org
Rapid Test
This is a https://rapid.cincinnati.ventures/">https://rapid.cincinnati.ventures/ project bootstrapped with rapid new --nextjs
This uses NextJS for the frontend and Rapid to allow for typesafe Rust function for the API routes.
Getting Started
First, run the rapid development server:
rapid run
Then run the NextJS development server
npm run dev
Open http://localhost:3000">http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
You can find the Rust API routes in the pages/api
directory.
Learn More
To learn more, take a look at the following resources:
- https://nextjs.org/docs">https://nextjs.org/docs - learn about Next.js.
- https://react.dev/">https://react.dev/ - learn about React.
- https://rapid.cincinnati.ventures/docs">https://rapid.cincinnati.ventures/docs - learn about Rapid.