Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reintroduce localdev setup #348

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ To download Argus frontend and install all required dependencies, run

Afterwards, use

npm start
npm run localdev

to start the app in development mode.
This will open your browser at http://localhost:3000 or similar.
This will open your browser at http://localhost:8080.

Congrats, you now have the Argus frontend up and running!

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"lint": "eslint src --ext .ts,.tsx,.js",
"test": "react-scripts test --silent --env=jest-environment-jsdom-sixteen",
"format": "prettier --write src",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"localdev": "HTTPS=false PORT=8080 REACT_APP_ENABLE_WEBSOCKETS_SUPPORT=true REACT_APP_USE_SECURE_COOKIE=false REACT_APP_DEBUG=true REACT_APP_BACKEND_WS_URL=ws://localhost:8000/ws REACT_APP_BACKEND_URL=http://localhost:8000 react-scripts start"
},
"eslintConfig": {
"extends": "react-app"
Expand Down