- Make sure that you have Node.js v8.15.1 or above installed.
- Clone this repo by running below command
git clone https://github.com/mknmohit/react-apollo.git
- Move to the appropriate directory i.e
cd react-apollo. - Now follow below steps to setup/run server and client.
- To install the Prisma CLI globally with Yarn, use the following command:
yarn global add prisma
- Move inside the react-apollo/server directory by running the command
cd serverand run the following commands:yarn install yarn start
Note 1: If you want to interact with the GraphQL API of the server inside a GraphQL Playground, you can navigate to http://localhost:4000.
Note 2: If you face any problem while running up the server then you can follow the guideline on official documentation to migrate the db https://www.prisma.io/docs/concepts/components/prisma-migrate
Now that the server is running, you can start the React app as well. The commands need to be run in a new terminal tab/window inside the root directory react-apollo (because the current tab is blocked by the process running the server.
- Go back to root directory by running
cd .../ - Run the following commands:
yarn install yarn start
- You can now open your browser and use the app on http://localhost:3000.







