If you are using our NextJS boilerplate we recommend you use it with our laravel boilerplate.
yarn run dev
Build and run your container locally
docker-compose up --build
- HTTPS mode in dev
- Redux & Saga
- Formik & Yup
- Immerjs
- Sign in
- Sign up
- Facebook sign in
- Google sign in
- Forgot & reset password
- Internationalization
- Edit profile
- Change password
For our forms we use Formik, and for validation we use Yup.
In components folder there are some examples of our forms, they all use custom text inputs which are located in components/shared/formFields
, and in validation
folder you will find some Yup
validation examples.
├── components
├──── auth
├──── shared
├─────── formFields
├────────── PasswordInputWithLabel.js
├────────── TextInputWithLabel.js
└── validation
For state management we use React Redux with Redux Saga and Reselect.
├── store
├──── actions
├──── index.js
├──── reducer
├──── selectors
└──── sagas
For more details check out next-i18next.
There are HOC made for this (withAuth
, withGuest
).
You can find examples in utils/hoc
.
Logged in user is beeing server side rendered
you can find the code in pages/_app.js
in getInitialProps
method.
To run this application in HTTPS mode you will need to generate certificates localy and put them in certs
folder in root of your project. The required certificate files are server.key
and server.ctr
. After that you can run yarn dev-https
command to run it in HTTPS.