Next.js gives you the best developer experience with all the features you need for production: hybrid static & server rendering, TypeScript support, smart bundling, route pre-fetching, and more. No config needed.
This project helps you:
- Have basic knowledge about Next.js: Routing; Pre-rendering (Static Generation, Server-side Rendering); Static file serving; API routes; Environment variables;...
- Have available configurations for CSS packages: SASS/SCSS, Tailwind, PostCSS.
- Work with forms, and validate fields by React Hook Form and Yup.
- Work with Redux, Redux Saga configured to be compatible with Next.js.
- Update SEO metadata, JSON-LD and Open Graph tags with Next SEO.
- Absolute imports using @ prefix.
- Write code better with Typescript, ESLint and Prettier.
- Write unit tests with Jest.
- Set up a reverse proxy to backend for preventing CORS attacks.
- Using Axios to send HTTP request.
- Start developing your web project easily and quickly.
Learn more here: https://nextjs.org/docs/getting-started
.env file:
#== ENVIRONMENT
NODE_ENV=<production or development>
#== APP
NEXT_PUBLIC_WEB_URL=<domain of the web>
BACKEND_URL=<url of the backend>For development (Node 16, Yarn):
$ yarn
$ yarn devFor running on live servers:
$ yarn start
# Then please config NginxReference: