Skip to content

Commit

Permalink
Fix/readme (#95)
Browse files Browse the repository at this point in the history
* Renumber markdown

* Add instruction to set env vars
  • Loading branch information
vpsx authored Feb 16, 2024
1 parent ff43aed commit 8dcf323
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ This section outlines the steps to set up the Authentication Service for local d
Ensure you have the following software installed on your machine:

1. [Docker](https://docs.docker.com/get-docker/)
2. [Node.js](https://nodejs.org/en/download/)
3. [npm](https://www.npmjs.com/get-npm)
1. [Node.js](https://nodejs.org/en/download/)
1. [npm](https://www.npmjs.com/get-npm)

## Setup Instructions

Expand All @@ -56,39 +56,45 @@ Ensure you have the following software installed on your machine:
cd packages/server
```
2. Build and run the Docker Compose file:
1. Build and run the Docker Compose file:
```
docker-compose up -d --build
```
3. Install the project's npm dependencies:
1. Set environment variables:
```
source .env.test
```
1. Install the project's npm dependencies:
```
npm i
```
4. Generate Prisma Client JS:
1. Generate Prisma Client JS:
```
npm run prisma:generate
```
5. Run Prisma migrations to set up your database schema:
1. Run Prisma migrations to set up your database schema:
```
npm run prisma:migrate
```
6. Start the development server:
1. Start the development server:
```
npm run start:dev
```
7. Access the GraphQL Playground at [http://localhost:3001/graphql](http://localhost:3001/graphql).
1. Access the GraphQL Playground at [http://localhost:3001/graphql](http://localhost:3001/graphql).
8. To create a project, use the following GraphQL mutation:
1. To create a project, use the following GraphQL mutation:
```graphql
mutation {
Expand Down

0 comments on commit 8dcf323

Please sign in to comment.