diff --git a/README.md b/README.md index 499855b..4740e9f 100644 --- a/README.md +++ b/README.md @@ -10,65 +10,13 @@ This is the sample project that belongs to the [React & Apollo Tutorial](https:/ git clone https://github.com/howtographql/react-apollo/ ``` -### 2. Install dependencies & Deploy the Prisma database API +### 2. Install dependencies -To install the Prisma CLI globally with Yarn, use the following command: ```sh -yarn global add prisma -``` - -Also, run the following commands: -```sh -cd react-apollo/server yarn install -prisma deploy +cd ./server && yarn install ``` -Then, follow these steps in the interactive CLI wizard: - -1. Select **Demo server** -1. **Authenticate** with Prisma Cloud in your browser (if necessary) -1. Back in your terminal, **confirm all suggested values** - -
- Alternative: Run Prisma locally via Docker - -1. Ensure you have Docker installed on your machine. If not, you can get it from [here](https://store.docker.com/search?offering=community&type=edition). -1. Create `docker-compose.yml` for MySQL (see [here](https://www.prisma.io/docs/prisma-server/database-connector-POSTGRES-jgfr/) for Postgres): - ```yml - version: '3' - services: - prisma: - image: prismagraphql/prisma:1.23 - restart: always - ports: - - "4466:4466" - environment: - PRISMA_CONFIG: | - port: 4466 - databases: - default: - connector: mysql - host: mysql - port: 3306 - user: root - password: prisma - migrations: true - mysql: - image: mysql:5.7 - restart: always - environment: - MYSQL_ROOT_PASSWORD: prisma - volumes: - - mysql:/var/lib/mysql - volumes: - mysql: - ``` -1. Run `docker-compose up -d` -1. Run `prisma deploy` - -
- ### 3. Start the server To start the server, all you need to do is execute the `start` script by running the following command inside the `server` directory: