Welcome to the C Code Formatter and AST Visualizer repository! This project provides tools for formatting code and visualizing its Abstract Syntax Tree (AST). Follow the steps below to get started:
You can clone this repository using the following command:
git clone https://github.com/Naindeep-Singh/code_format.git
Navigate to the react-app directory. Run the following command to install dependencies:
npm install
Run the following commands to install dependencies:
npm install axios
npm install react-router-dom
Navigate to the flask-server directory. Install the required Python libraries using pip:
pip install flask flask-cors pycparser graphviz
pip install -q -U google-generativeai
Obtain key from Gemini API
Install from Graphviz Download
Start the Flask server by running the following command in the flask-server directory
python app.py
Start the React app by running the following command in the react-app directory
npm start