Status: ongoing
If you want to build a monorepo project with Next.js which combines server and frontend in one repository. This boilerplate suitable for you! It is cost-effective because server and frontend only have one node_modules
and can share utils
each other.
-
Clone repository
$ git clone https://github.com/sutanlab/fullstack-next-graphql.git
-
Install depedencies
# with npm
$ npm install
# or with yarn
$ yarn install
- Run server in development mode
$ npm run dev
# or
$ yarn dev
- Before run server in production mode, you must build next files
$ npm run build
# or
$ yarn build
- Start server in production mode
$ npm start
# or
$ yarn start
Copyright © 2019 by Sutan Gading Fadhillah Nasution