This project has been abandoned and will be followed here: https://github.com/johhansantana/nast
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)
The boilerplate features examples on how to use GraphQL with Server Side Rendering.
You can view the live demo here.
First of all, download or clone the repository.
- Download or clone the repository
npm installnpm run dev- Navigate to
localhost:3000
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
To deploy to now simply type now and fill up the DATABASE_URL environment variable.
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