mirror of
https://github.com/caprover/caprover
synced 2025-12-08 04:25:33 +00:00
last bit of duck was removed
This commit is contained in:
@@ -56,16 +56,10 @@ path of it will be printed on the terminal, otherwise, there won't be anything p
|
||||
|
||||
### front end development:
|
||||
First, you simply run the debug build for the backend service as explained above.
|
||||
Then go to `app-frontend` and run follow the installation guide explained in
|
||||
frontend app [README.md](https://github.com/githubsaturn/captainduckduck/tree/master/app-frontend#installation)
|
||||
Then go to `app-frontend` and run `yarn` followed by `yarn start`. Frontend app is based on CreateReactApp.
|
||||
|
||||
Change the endpoint for the backend server to your debug instance by editing this file:
|
||||
`/captainduckduck/app-frontend/src/js/captain/apiManager.js` and uncomment the correct line
|
||||
- `BASE_API = 'http://captain.captain.localhost/api/v1/'` if you have dnsmasq installed
|
||||
- `BASE_API = 'http://127.0.0.1:3000/api/v1/'` if you don't have dnsmasq installed
|
||||
|
||||
You need to hardcode a logged in user to avoid having to log it with every refresh of the page. To do so, steal the auth token from the network inspector on Chrome and hardcode it in apiManager.js.
|
||||
You can simply replace `var authToken = null` with `var authToken = 'THE_AUTH_TOKEN_STOLEN_FROM_NETWORK_INSPECTOR'`
|
||||
`ApiManager.ts`
|
||||
|
||||
### CLI development:
|
||||
Just simply install dependencies in `app-cli` directory by running `npm install` and you are good to go!
|
||||
@@ -76,7 +70,7 @@ first save the changes, then you need to restart the service either by sending a
|
||||
or by running `./dev-reset-service.sh` script which is available in `app-backend` directory.
|
||||
|
||||
### Security Issues
|
||||
Security issues are high priority and they will be addressed immediately. If you find a security issue, please do not post as a public issue, instead, please email it to us: captainduckduck.github@gmail.com
|
||||
Security issues are high priority and they will be addressed immediately. If you find a security issue, please do not post as a public issue, instead, please email it to us: security at caprover dot com.
|
||||
|
||||
|
||||
## Code of Conduct
|
||||
|
||||
Reference in New Issue
Block a user