|
| 1 | +# StackCore |
| 2 | + |
| 3 | +A code dependency analysis and visualization platform that helps developers |
| 4 | +understand, audit, and optimize their codebase architecture through interactive |
| 5 | +visualizations and automated analysis. |
| 6 | + |
| 7 | +## 🚀 Quick Start |
| 8 | + |
| 9 | +### Prerequisites |
| 10 | + |
| 11 | +- [Deno](https://deno.land/) v2.3.5+ |
| 12 | +- [Docker](https://docker.com) |
| 13 | + |
| 14 | +### Setup for local devlopment |
| 15 | + |
| 16 | +1. **Setup Stripe objects** |
| 17 | + |
| 18 | + Create a Stripe account and set up the required Stripe objects (products, |
| 19 | + prices, and meters). You can use the convenience script at |
| 20 | + [packages/core/src/stripe/scripts/createObjects.ts](packages/core/src/stripe/scripts/createObjects.ts). |
| 21 | + |
| 22 | + Run the script and follow the prompts - it will create all the necessary |
| 23 | + objects and output their IDs which you'll need for the next step. |
| 24 | + |
| 25 | +1. **Create `.env` file** |
| 26 | + |
| 27 | + Copy `.env.example` content into a `.env` file and fill in the missing |
| 28 | + variables. |
| 29 | + |
| 30 | +1. **Start services** |
| 31 | + |
| 32 | + ```bash |
| 33 | + # database |
| 34 | + deno task db:docker |
| 35 | + deno task db:migrate |
| 36 | + |
| 37 | + # Terminal 1: stripe CLI to forward webhook to the API |
| 38 | + deno task stripe:forward |
| 39 | + |
| 40 | + # Terminal 2: Fake gcs bucket |
| 41 | + deno task bucket:mock |
| 42 | + |
| 43 | + # Terminal 3: API |
| 44 | + deno task dev:core |
| 45 | + |
| 46 | + # Terminal 4: APP |
| 47 | + deno task dev:app |
| 48 | + ``` |
| 49 | + |
| 50 | +### Unit test |
| 51 | + |
| 52 | +Before running the test, you need: |
| 53 | + |
| 54 | +```bash |
| 55 | +# mock stripe API |
| 56 | +deno task stripe:mock |
| 57 | + |
| 58 | +# mock gcs bucker |
| 59 | +deno task bucket:mock |
| 60 | + |
| 61 | +# then run the test |
| 62 | +deno task test |
| 63 | +``` |
| 64 | + |
| 65 | +## 📊 What StackCore Does |
| 66 | + |
| 67 | +- **Dependency Visualization**: Interactive graphs showing file and symbol-level |
| 68 | + dependencies |
| 69 | +- **Code Metrics**: Cyclomatic complexity, line counts, dependency analysis |
| 70 | +- **Audit Reports**: Automated detection of code quality issues |
| 71 | +- **Multi-level Analysis**: Project, file, and symbol-level insights |
| 72 | + |
| 73 | +### Architecture |
| 74 | + |
| 75 | +- **`@stackcore/core`**: Backend API (Deno + Oak) |
| 76 | +- **`@stackcore/app`**: Frontend (React + Cytoscape.js) |
| 77 | + |
| 78 | +## 📝 License |
| 79 | + |
| 80 | +[Add your license information here] |
0 commit comments