A platform that leverages GPT AI API for auditing smart contracts.
-
Prerequisites:
- Ensure you have
node
andnpm
installed. If not, download and install them from here. - A code editor of your choice.
- Ensure you have
-
Install Dependencies:
- Navigate to both the frontend (
BlockHack-Frontend
) and backend (smartcontract-analyzer
) folders separately and run the following:npm install
- Navigate to both the frontend (
Since Dockerization is currently facing issues, the recommendation is to run the backend and frontend separately using two terminals.
-
Backend:
- Navigate to the
smartcontract-analyzer
folder. - Run the command:
node server.js
- The backend should start at
localhost:3000
.
- Navigate to the
-
Frontend:
- Navigate to the
BlockHack-Frontend
folder. - Run the command:
npm start
- Since the backend occupies
localhost:3000
, the frontend should start atlocalhost:3001
.
- Navigate to the
Although Docker files are provided, currently only the backend is accessible at localhost:3000
when using Docker. The frontend faces issues. Thus, it's recommended not to use Docker for now.
For the backend to function properly, you need to set up environment variables:
-
Without Docker:
- Create a
.env
file in thesmartcontract-analyzer
folder with the following content:OPENAI_API_KEY="YOUR_OPENAI_API_KEY" PORT=3000
- Create a
-
With Docker (not recommended at the moment):
- Create a
.env
file in thesmartcontract-analyzer
folder with just the API key:OPENAI_API_KEY="YOUR_OPENAI_API_KEY"
- Create a
- Sufiyan Memon
- Anishkumar Patel
- Kevon Jaggassar
- Xiaogang Dong
- Umut Yorulmaz
Made with ❤️ by the Decentralized Minds - GBC Blockchain Club.