An AI-powered coding assistant built using React, Node.js, Express, and Groq LLM APIs.
This project allows users to chat with an AI assistant for:
- JavaScript help
- Node.js debugging
- React guidance
- Code generation
- Error explanations
- Programming questions
The frontend is built with React + Vite and the backend uses Node.js + Express to connect with Groq AI models.
- AI chatbot interface
- React frontend
- Node.js Express backend
- Groq LLM integration
- Fast AI responses
- Simple and beginner-friendly project structure
- React
- Vite
- Axios
- Node.js
- Express
- Groq API
- OpenAI SDK
ai-coding-assistant/
│
├── client/
│ ├── src/
│ ├── package.json
│
├── server/
│ ├── server.js
│ ├── .env
│ ├── package.json
git clone https://github.com/vivsamcom/ai-coding-assistant.gitcd ai-coding-assistantcd servernpm installCreate a .env file inside the server folder.
Example:
GROQ_API_KEY=your_groq_api_key_here
PORT=5000-
Open: https://console.groq.com
-
Sign in
-
Go to API Keys
-
Create a new API key
-
Copy and paste it into
.env
npm startYou should see:
Server running on port 5000
Backend URL:
http://localhost:5000
Go to project root:
cd ai-coding-assistantcd clientnpm installnpm run devYou should see:
http://localhost:5173
Open this URL in browser.
Type coding questions in the chat input and click Send.
Explain JavaScript promises with examples
What is async await in Node.js?
Create a React login form
Explain React useEffect hook
How to create REST API using Express?
Fix this Node.js error
Why am I getting CORS error?
How to fix undefined is not a function?
This project currently uses:
llama-3.3-70b-versatile
via Groq API.
If you are behind corporate VPN or Zscaler and get SSL certificate errors:
unable to get local issuer certificate
Add this line at the top of server.js:
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";This is recommended only for local development.
Planned features:
- Chat history
- Markdown rendering
- Syntax highlighting
- Streaming AI responses
- Multiple AI models
- Conversation memory
- File upload support
- PDF chat support
MIT License