MCPcopy Index your code
hub / github.com/bonnie/bonniedotdev

github.com/bonnie/bonniedotdev @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
403 symbols 1,385 edges 164 files 82 documented · 20%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

bonniedotdev

Code for https://bonnie.dev

License

GNU AFFERO GENERAL PUBLIC LICENSE

Installation for Development

Environment variables

  • $ cp dotenv_template .env
  • Fill out your environment variables
  • for development, the value of FLASK_ENV should be development

Client

  • $ cd client
  • $ npm install
  • $ npm run dev:build

Server

  • $ pip install pre-commit # if you don't have it installed globally
  • $ cd server
  • Create and activate a virtual env
  • $ pip install -r requirements.txt
  • $ pre-commit install

Building the Client for Production

After changes, you can re-build the client with:

  • $ cd client
  • $ npm run build
  • postbuild.sh will run automatically to move files to the correct place in app

Start up

  • $ cd server
  • $ source .env && python server.py

  • Note: You will need to re-run npm run dev:build upon changes to client

Testing

Client

  • $ cd client
  • $ npm test

Server

  • $ cd server
  • $ source .env
  • $ chmod +x ./run_tests.sh (make the file executable)
  • $ ./run_tests.sh

Deploying

Deploying client

  1. Build the client

  2. $ cd client

  3. $ npm run build
  4. postbuild.sh will run automatically to move files to the correct place in app

  5. Upload the build

  6. $ bash server/scripts/upload_build.sh

  7. log on to aws lightsail and run post-upload script

  8. locally: bdd-ssh

  9. on lightsail: ~/bonniedotdev/server/scripts/bdd-postupload.sh

Deploying server

  1. log on to lightsail

  2. locally: bdd-ssh

  3. Pull from GitHub

  4. on lightsail: git pull origin main

  5. Update db if applicable

  6. on lightsail: ~/bonniedotdev/server/scripts/update_db.sh

  7. Restart server

  8. on lightsail: ~/bonniedotdev/server/scripts/restart_server.sh

Extension points exported contracts — how you extend this code

User (Interface)
(no doc)
client/src/Types/index.ts
Item (Interface)
(no doc)
client/src/Types/index.ts
NewReviewQuote (Interface)
(no doc)
client/src/Types/index.ts
ReviewQuote (Interface)
(no doc)
client/src/Types/index.ts
NewCoupon (Interface)
(no doc)
client/src/Types/index.ts

Core symbols most depended-on inside this repo

get
called by 32
server/app/services/udemy.py
post
called by 17
server/app/resources/log_resource.py
renderWithRouterAndProvider
called by 15
client/src/TestUtils/renderWith.tsx
to_dict
called by 13
server/app/models/talk_model.py
update_db
called by 13
server/app/models/base_model.py
renderWithProvider
called by 12
client/src/TestUtils/renderWith.tsx
delete
called by 11
server/app/models/base_model.py
patch
called by 9
server/app/resources/base_crud_resource.py

Shape

Function 228
Interface 58
Method 58
Class 39
Route 15
Enum 5

Languages

Python57%
TypeScript43%

Modules by API surface

server/app/__init__.py19 symbols
server/tests/unit/app/models/test_course_model.py17 symbols
client/src/Types/index.ts16 symbols
server/tests/conftest.py11 symbols
server/app/models/cheat_sheet_model.py10 symbols
server/tests/functional/test_upload_routes.py9 symbols
server/tests/unit/app/models/test_coupon_model.py6 symbols
server/tests/functional/test_talk_routes.py6 symbols
server/tests/functional/test_review_quote_routes.py6 symbols
server/tests/functional/test_cheat_sheet_route.py6 symbols
server/app/utilities/init_db.py6 symbols
server/app/resources/base_crud_resource.py6 symbols

For agents

$ claude mcp add bonniedotdev \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact