-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
40 lines (40 loc) · 1.5 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"name": "posts-express-api-app",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"fe-install": "cd frontend && pnpm install && cd ..",
"fe": "cd frontend && pnpm run dev || cd ..",
"be": "nodemon app.js",
"_fe_be_why": "#both fe and be are dev - we need two terminals for debugging both FE and BE apps at simultaneously and independently",
"build-fe": "cd frontend && pnpm run build && cd ..",
"serve-be": "node app.js",
"_build-fe_and_serve-be_why": "#In prod, need to build frontend first and start BE next",
"start-server": "pnpm run fe-install && pnpm run build-fe && pnpm run serve-be",
"_why_serve_and_start-server": "#serve is for local serve (single terminal), start-server is for deploy",
"---for-deploy": "#",
"deploy": "source .env && wget $DEPLOY_TRIGGER_URL -O /dev/null",
"_deploy": "triggers cloud deploy machine to build latest commit (render.com)",
"start": "node app.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/exemplar-codes/posts-express-api-app.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/exemplar-codes/posts-express-api-app/issues"
},
"homepage": "https://github.com/exemplar-codes/posts-express-api-app#readme",
"dependencies": {
"cors": "^2.8.5",
"dotenv": "^16.3.1",
"express": "^4.18.2",
"mongoose": "^7.5.1",
"nodemon": "^3.0.1"
}
}