Skip to content
This repository has been archived by the owner on Nov 28, 2020. It is now read-only.

Commit

Permalink
Merge branch 'concurrently-nodemon' into leaderboard-protection
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasngai committed Feb 13, 2020
2 parents b972a36 + 57b8534 commit 2c16e8c
Show file tree
Hide file tree
Showing 3 changed files with 542 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

`yarn` to install dependencies - do this when you first download it!

`cd server && python flask_app.py & yarn start` - start web server and webpack dev server
`yarn start` - start web server and webpack dev server

`yarn build` - generate built version in `deploy` folder, that can be pasted into `berkeley-cs61a`

Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"react-scripts": "3.0.1"
},
"scripts": {
"start": "react-scripts start",
"start": "concurrently -n react,flask \"react-scripts start\" \"cd server && nodemon --ext py --exec python3 flask_app.py\"",
"build": "react-scripts build && rm -rf deploy && mkdir deploy && cp -r server/ deploy && mv build deploy/static",
"deploy": "cd deploy/ && rm -rf .git && git init && git add -A && git commit -m \"init\" && git remote add dokku [email protected]:cats && git push --force dokku master",
"test": "react-scripts test",
Expand All @@ -36,10 +36,12 @@
]
},
"devDependencies": {
"concurrently": "^5.1.0",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-fbjs": "^3.1.0",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.14.3"
"eslint-plugin-react": "^7.14.3",
"nodemon": "^2.0.2"
}
}
Loading

0 comments on commit 2c16e8c

Please sign in to comment.