Clone the repository:
git clone https://github.com/Andr3wRiv3rs/next_fullstack_template
cd next_fullstack_template
yarn
Create a .env
file with these values:
PORT=3000
PROXY_PORT=3001
WS_PORT=3002
yarn dev
This command uses concurrently
to run a nodemon
instance alongside Next.js.
yarn start
This command will build your frontend source code statically and export to the /out
directory.
The static code is then served through /api/index.js
via express.static()
.
- Pre configured with SASS, Axios, and Chalk
- Contains an example for using in
/pages/_app.js
- Contains a CSS reset in
/sass/global.sass
, imported by/pages/_app.js