Skip to content

Commit 3daf2b6

Browse files
committedMay 10, 2024
run dev server using nodemon
1 parent 30809d7 commit 3daf2b6

File tree

3 files changed

+114
-33
lines changed

3 files changed

+114
-33
lines changed
 

‎README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ cp .env.example .env.production
4646

4747
4. Start the development server
4848
```bash
49-
npm start
49+
npm run dev
5050
```
5151
The server will start locally at [http://localhost:4000/](http://localhost:4000/).
5252

@@ -55,14 +55,17 @@ The server will start locally at [http://localhost:4000/](http://localhost:4000/
5555
To deploy the GraphQL API using AWS Lambda and API Gateway:
5656

5757
1. Set up an AWS account if you haven't already and copy your `YOUR_ACCESS_KEY` and `YOUR_SECRET_KEY`.
58+
5859
2. Install the Serverless Framework globally:
5960
```bash
6061
npm install -g serverless
6162
```
63+
6264
3. Build the project:
6365
```bash
6466
npm run build
6567
```
68+
6669
4. Configure AWS credentials with the Serverless Framework:
6770
```bash
6871
serverless config credentials --provider aws --key YOUR_ACCESS_KEY --secret YOUR_SECRET_KEY

‎package-lock.json

+106-30
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"scripts": {
77
"test": "jest",
88
"build": "npx tsc",
9-
"start": "npx tsc && node dist/index.js"
9+
"start": "npx tsc && node dist/index.js",
10+
"dev": "nodemon src/index.ts"
1011
},
1112
"keywords": [],
1213
"author": "",
@@ -28,6 +29,7 @@
2829
"dotenv": "^16.4.5",
2930
"graphql": "^16.8.1",
3031
"mongoose": "^8.3.4",
31-
"node-input-validator": "^4.5.1"
32+
"node-input-validator": "^4.5.1",
33+
"nodemon": "^3.1.0"
3234
}
3335
}

0 commit comments

Comments
 (0)
Please sign in to comment.