Skip to content

This repo hosts python code which takes in javascript based github repo url, and analyses the code, breaks it down into a graph and pushes into neo4j

Notifications You must be signed in to change notification settings

vineetshar/js-code-analyser

Repository files navigation

  1. docker-compose up

  2. create new virtual env, activate it , copy .env.sample as .env for neo4j connection creds

  3. install items from requirements.txt, pip install -r requirements.txt

  4. uvicorn main:app --reload

  5. API to clone a public git repo - curl -X 'POST'
    'http://127.0.0.1:8000/parse-repo/'
    -H 'accept: application/json'
    -H 'Content-Type: application/json'
    -d '{ "repo_url": "https://github.com/shreshthgoyal/gitgraph-bck" }'

  6. List the identifiers curl -X GET http://127.0.0.1:8000/list-identifiers/

  7. curl -X 'POST' \ 'http://127.0.0.1:8000/get-children-texts/?identifier_name=NameHere'
    -H 'accept: application/json'
    -H 'Content-Type: application/json'

Screenshots

Screenshot 1 Screenshot 2 Screenshot 3 Screenshot 4

About

This repo hosts python code which takes in javascript based github repo url, and analyses the code, breaks it down into a graph and pushes into neo4j

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages