https://github.com/in-c0/gitsum-backend
https://github.com/in-c0/gitsum-backend
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/in-c0/gitsum-backend
- Owner: in-c0
- Created: 2025-02-07T16:14:57.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-07T16:29:13.000Z (4 months ago)
- Last Synced: 2025-02-07T17:29:14.213Z (4 months ago)
- Language: JavaScript
- Size: 3.46 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Project Structure
```bash
/src
/analysis.js
/license.js
/cli.js
/package.json
/.env
```## Preparation
Run `npm install`
Run `repomix` to pack the repository
Configure API keys in `.env`## Local Development
Run `node server.js` to start the serverTest login at http://localhost:3000/auth/github
(Make sure the Authorization callback URL is set to the url - configure it at github.com/settings/applications/id )Upon successful authorization, you should be redirected to:
http://localhost:3000/dashboardOpen developer tool (F12) > Application > Cookies > connect.sid (copy value)
Test `/summarize` endpoint by sending a POST request with the cookie (Postman > Headers > Key/Value. Key: Cookie, Value: connect.sid=...)
Make sure to include a repoUrl in the Body (Raw JSON):
```
{
"repoUrl": "https://github.com/facebook/react"
}
```Note we can run Repomix on the local directory with custom settings (e.g. NO_COLOUR)
## Debugging
`/summarize`:
- Error code 401: Check OpenAI API