You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ for patients with bipolar disorder, helping them shorten their journey to stabil
6
6
## Usage
7
7
8
8
You can view the current build of the website here: [https://balancerproject.org/](https://balancerproject.org/)
9
+
You can view the website in a sandbox here: [https://sandbox.balancerproject.org/](https://sandbox.balancerproject.org/)
9
10
10
11
## Contributing
11
12
@@ -31,11 +32,9 @@ Get the code using git by either forking or cloning `CodeForPhilly/balancer-main
31
32
```
32
33
2. (Optional) Add your API keys to `config/env/dev.env`:
33
34
-`OpenAI API`
34
-
-`Anthropic API`
35
35
36
36
Tools used for development:
37
37
1.`Docker`: Install Docker Desktop
38
-
2.`Postman`: Ask to get invited to the Balancer Postman team `balancer_dev`
39
38
3.`npm`: In the terminal run 1) 'cd frontend' 2) 'npm install' 3) 'cd ..'
40
39
41
40
### Running Balancer for development
@@ -96,6 +95,14 @@ Most endpoints require JWT authentication. To test them in Swagger UI:
96
95
3.**Test endpoints**: All subsequent requests will include your token. Use **Try it out** on any protected endpoint.
97
96
4.**Token refresh**: Access tokens expire after 60 minutes. Use `POST /auth/jwt/refresh/` with your `refresh` token, or repeat step 1.
98
97
98
+
### Deployment
99
+
100
+
1. Merging your PR into develop automatically triggers a GitHub Release
101
+
2. The release triggers a container build workflow that builds and pushes the Docker image
102
+
3.[Go to GitHub Packages](https://github.com/CodeForPhilly/balancer-main/pkgs/container/balancer-main%2Fapp) to find the new image tag
103
+
4. Update newTag in kustomization.yaml [in the cluster repo](https://github.com/CodeForPhilly/cfp-live-cluster/blob/main/balancer/kustomization.yaml)
104
+
5. Open a PR to [cfp-sandbox-cluster](https://github.com/CodeForPhilly/cfp-sandbox-cluster) (or [cfp-live-cluster](https://github.com/CodeForPhilly/cfp-live-cluster))
105
+
99
106
## Architecture
100
107
101
108
The Balancer website is a Postgres, Django REST, and React project. The source code layout is:
0 commit comments