Skip to content

Commit

Permalink
add seeddata-prod script to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ansonjwhe committed Apr 13, 2024
1 parent d0dbc92 commit abe5e25
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,16 @@ To generate seed data, in the terminal in the backend directory, you must first
run:

```
npm run utils/seedData.js [--prod]
npm run seeddata
```

Note that this step is not optional due to the fact we need to inject wato cash's id as it is a special case for a funding item. If you pass in --prod, it will only create the wato cash fund, and no dummy data will be created.
or

```
npm run seeddata-prod
```

Note that this step is not optional due to the fact we need to inject wato cash's id as it is a special case for a funding item. The -prod version will only create the wato cash fund, and no dummy data will be created.

---

Expand Down
3 changes: 2 additions & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "",
"main": "server.js",
"scripts": {
"seeddata": "node utils/seedData.js"
"seeddata": "node utils/seedData.js",
"seeddata-prod": "node utils/seedData.js --prod"
},
"keywords": [],
"author": "",
Expand Down

0 comments on commit abe5e25

Please sign in to comment.