Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 1.09 KB

File metadata and controls

30 lines (18 loc) · 1.09 KB

GraphQL + Apollo + Next.js + React + MongoDB

Complete example of using Next.js with GraphQL, Apollo and MongoDB

What is it?

This project aims to show how you can use Next.js in conjunction with GraphQL, Apollo and MongoDB.

The Hearthstone card database is used as an example.

Setting up development environment

  • Create a database in MongoDB named hearthstone-now.
  • git clone https://github.com/rettimo/nextjs-graphql-apollo-mongodb-example.git
  • Create an empty .env file, copy .env.example contents into it, and fill in your database name, username and password.
  • yarn install
  • yarn run dev
  • App should now be running on http://localhost:3000/

Disclaimer

This is just a demo project that does not claim to be true. I strongly discourage using it in production projects. Check yourself any information presented on the Internet!

If you have any questions regarding the project, please let me know therettimo@gmail.com