An open API service indexing awesome lists of open source software.

https://github.com/gadingnst/fullstack-next-graphql

Fullstack Next.js boilerplate with Express and Apollo Server
https://github.com/gadingnst/fullstack-next-graphql

Last synced: 9 months ago
JSON representation

Fullstack Next.js boilerplate with Express and Apollo Server

Awesome Lists containing this project

README

          

# Fullstack Next GraphQL Boilerplate
---

> Status: ongoing





## Table of contents
- [# Fullstack Next GraphQL Boilerplate](#h1-id%22fullstack-next-graphql-boilerplate-74%22fullstack-next-graphql-boilerplateh1)
- [Table of contents](#table-of-contents)
- [Why ?](#why)
- [Setup](#setup)

---

## Why ?
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.

## Setup
- Clone repository
`$ git clone https://github.com/sutanlab/fullstack-next-graphql.git`

- Install depedencies
```bash
# with npm
$ npm install

# or with yarn
$ yarn install
```
- Run server in development mode
```bash
$ npm run dev
# or
$ yarn dev
```

- Before run server in production mode, you must build next files
```bash
$ npm run build
# or
$ yarn build
```

- Start server in production mode
```bash
$ npm start
# or
$ yarn start
```

---

Copyright © 2019 by Sutan Gading Fadhillah Nasution