From ceeddb5460cba2cde8577c1817c0e5a86b216c66 Mon Sep 17 00:00:00 2001 From: Uzair Aziz Suria <65369471+uzair-suria@users.noreply.github.com> Date: Mon, 7 Jun 2021 15:04:48 +0500 Subject: [PATCH] Update README.md Added instructions for setting up server to follow along the [Apollo GraphQL Fullstack Tutorial](https://www.apollographql.com/docs/tutorial/introduction/) and avoid getting error after running `npm run` command --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 50b0f2ff4..e97c06403 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,19 @@ The app is split out into two folders: From within the `start` and `final` directories, there are two folders (one for `server` and one for `client`). +## Usage + +### Setting up server for Windows PCs +1. Ensure Python 3 is installed. + * To check if installation exists, open command prompt and type in `py`. + * You should see python version and some other information. + * In the last line you should see three chevrons (`>>>`). This indicates python shell window is activated (also known as IDLE) +2. Delete `package-lock.json` file +3. Open `package.json` and under `dependencies` replace `"sqlite3": "^4.0.3"` with `"sqlite3": "^5.0.0"` +4. Open terminal at project location and navigate to `./start/server/` location +5. Run the command `npm install` to install all the dependencies +6. Now follow the tutorial at https://www.apollographql.com/docs/tutorial/introduction/ + ## Installation To run the app, run these commands in two separate terminal windows from the root: