-
You can find up to date examples of how to use Next.js at https://github.com/vercel/next.js
-
For an example of how to add authentication to Next.js project, check out NextAuth.js at https://next-auth.js.org
There is a NextAuth.js example project with live demo at http://next-auth-example.now.sh
This is a starter project for React that uses Next.js.
- Authentication via Email, Facebook, Twitter and Google+
- Uses Express combined with Passport JS for authentication and route handling
- Account management - Update details, link/unlink accounts, delete account
- Session support with secure HTTP Only cookies and CSRF Tokens
- SASS/SCSS wth Bootstrap 4 and Reactstrap with Bootstrap components for React
- Comes with Ionicons icon font and shows how to bundle other CSS and font files
You can see a live demo at https://nextjs-starter.now.sh
To get started, just clone the repository and run npm install && npm run dev
:
yarn install
yarn dev
If you wanted to run this site in production, you should install modules then build the site with npm run build
and run it with npm start
:
yarn install
yarn build
yarn start
You should run yarn build
again any time you make changes to the site.