This project was generated with superplate. openapi-typescript-codegen
superplate is a Next.js all-in-one project generator. Create your project with the tools you need without spending hours on setting them up.
You SHOULD add these packages fist.
pnpm add -D openapi-typescript-codegen fs request
pnpm add axios react-hook-form iron-session @tailwindcss/forms
And then, you SHOULD edit the generator.js file.
So now, you can generate your base api by
pnpm run codegen
The script download the spec.json and generate the openapi base (models, schemas, services) under the /rest folder.
After then, you can create your api calls under the pages/api/ folder.
pnpm dev
pnpm build
pnpm start
To learn more about superplate, please check out the Documentation.
A utility-first CSS framework packed with classes like flex, pt-4, text-center and rotate-90 that can be composed to build any design, directly in your markup.
Sass is a stylesheet language that’s compiled to CSS. It allows you to use variables, nested rules, mixins, functions, and more, all with a fully CSS-compatible syntax.
Next.js has a built-in polyfill for the fetch API. You don't need to worry about using it on either server or client side.
Storybook is an open source tool for developing UI components in isolation for React, Vue, Angular, and more. It makes building stunning UIs organized and efficient.
Transform SVGs into React components.
Use environment variables in your next.js project for server side, client or both.
Proxying some URLs can be useful when you have a separate API backend development server and you want to send API requests on the same domain.
Use webpack-bundle-analyzer in your Next.js project. Visualize size of webpack output files with an interactive zoomable treemap.
React Hooks library for data fetching from Vercel
Hooks for fetching, caching and updating asynchronous data in React.
A Collection of useful React hooks.
Redux helps you write applications that behave consistently, run in different environments (client, server, and native), and are easy to test.
RTK Query is a powerful data fetching and caching tool
next-i18next is a plugin for Next.js projects that allows you to get translations up and running quickly and easily, while fully supporting SSR, multiple namespaces with codesplitting, etc.
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
An opinionated code formatter; Supports many languages; Integrates with most editors.
The concept of lint-staged is to run configured linter (or other) tasks on files that are staged in git.
The React Testing Library is a very light-weight solution for testing React components. It provides light utility functions on top of react-dom and react-dom/test-utils.
Fast, easy and reliable testing for anything that runs in a browser.
Docker simplifies and accelerates your workflow, while giving developers the freedom to innovate with their choice of tools, application stacks, and deployment environments for each project.
GitHub Actions makes it easy to automate all your software workflows, now with world-class CI/CD. Build, test, and deploy your code right from GitHub.
MIT