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
_Maintos_ is a maintainer's dashboard which gives maintainers access to information and control on their projects, without requiring explicit access to the server. Maintainers of a project can start/stop the running containers/services, read logs for the project, as well as see and update environment variables.
60
60
61
61
<palign="right">(<ahref="#top">back to top</a>)</p>
62
62
63
63
## Development
64
-
[WIP]
64
+
65
+
1. Clone this repository.
66
+
2. Backend:
67
+
- Copy `.env.template` to `.env` and update the values as per [Environment Variables](#environment-variables).
68
+
- For the backend to run, Docker must be installed and running.
69
+
- Run the backend:
70
+
```bash
71
+
cargo run
72
+
```
73
+
3. Frontend:
74
+
- Set the environment variables in`.env.local`:
75
+
- `VITE_BACKEND_URL`: URL of the backend
76
+
- `VITE_GH_OAUTH_CLIENT_ID`: Client ID of the GitHub OAuth App.
77
+
- Run the frontend:
78
+
```bash
79
+
npm install
80
+
npm run dev
81
+
```
82
+
83
+
84
+
### Environment Variables
85
+
86
+
This project needs a [GitHub OAuth app](https://github.com/settings/developers) and a [Personal Access Token](https://github.com/settings/personal-access-tokens) of an admin of the GitHub org.
87
+
88
+
- `GH_CLIENT_ID`, `GH_CLIENT_SECRET`: Client ID and Client Secret for the GitHub OAuth application.
89
+
- `GH_ORG_NAME`: Name of the GitHub organisation
90
+
- `GH_ORG_ADMIN_TOKEN`: A GitHub PAT of an org admin
91
+
- `JWT_SECRET`: A secure string (for signing JWTs)
92
+
- `DEPLOYMENTS_DIR`: Absolute path to directory containing all the project git repos (deployed)
93
+
- `SERVER_PORT`: Port where the backend server listens to
94
+
- `CORS_ALLOWED_ORIGINS`: Frontend URLs
95
+
65
96
66
97
## Deployment
67
98
[WIP]
@@ -98,12 +129,12 @@ See https://wiki.metakgp.org/w/Metakgp:Project_Maintainer.
0 commit comments