Skip to content
This repository was archived by the owner on Feb 24, 2018. It is now read-only.
/ nerg Public archive

NextJS, ExpressJS, Redux, GraphQL Boilerplate

Notifications You must be signed in to change notification settings

johhansantana/nerg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f1e76fd · Feb 24, 2018

History

59 Commits
Jun 27, 2017
Jun 27, 2017
Jun 27, 2017
Jun 27, 2017
Jun 27, 2017
Jun 27, 2017
Jun 27, 2017
Jun 20, 2017
Jun 16, 2017
Jun 16, 2017
Jun 27, 2017
Feb 23, 2017
Feb 24, 2018
Jun 22, 2017
Jun 19, 2017
Jun 19, 2017
Jun 22, 2017
Jun 27, 2017
Jun 19, 2017
Jun 16, 2017
Jun 22, 2017

Repository files navigation

Deprecated

This project has been abandoned and will be followed here: https://github.com/johhansantana/nast

NERG stack (NextJS, ExpressJS, Redux, GraphQL)

This is a complete boilerplate using various Zeit examples. It uses

  • NextJS
  • Redux
  • Apollo
  • Express
  • GraphQL
  • Sequelize
  • PostgresQL (it can use any other SQL DB)

Features and Live Demo

The boilerplate features examples on how to use GraphQL with Server Side Rendering.

You can view the live demo here.

How to use

First of all, download or clone the repository.

Development

  • Download or clone the repository
  • npm install
  • npm run dev
  • Navigate to localhost:3000

Production

The package.json file has been setup to be run in now or in heroku but it can run in a VPS as well by running the npm run prod and npm start commands

Now

To deploy to now simply type now and fill up the DATABASE_URL environment variable.

Heroku

To deploy to Heroku you'll have to create an app in heroku's dashboard, then create (for this example) create a postgresql database then push your changes using git push heroku master