Back

Jainik shah

ย โ€ขย 

Chat-gpt - AI Content Generator for Faster, Creative Content Creationย โ€ขย 4m

Hi abhirup, Thanks for your interest in the project! You asked for the backend code as proof of work, and that's a great question. The way Indie AI is built is with a modern, serverless architecture, which means you won't find a traditional backend file (like a Python or Node.js server). All of the logic is self-contained in the index.html file. The application runs entirely in the user's browser and communicates directly with external AI services. The core "backend" logic you're looking for is the makeGeminiApiCall function. This is the JavaScript function I wrote that: Takes the user's prompt and conversation history. Adds my custom system instructions and user preferences. Securely sends the data to Google's Gemini API endpoint. Receives the response from the API and displays it to the user. Similarly, for the image generation feature, the code constructs a URL to call the image.pollinations.ai API. This client-side approach is what makes the project lightweight and scalable. The real work was in designing the user interface with React, managing the application's state, and correctly integrating with the Google Gemini API to create a seamless chat experience. I'd be happy to walk you through the JavaScript code in the index.html file to show you exactly how it works. Best regards, jainik shah

Reply

More like this

Recommendations from Medial

Image Description
Image Description

Kavy Gajjar

Exploringย โ€ขย 6m

Is coding frontend&backend in authentic way is sensible rn cause there are many tools and ai agents should I go to learn frontend and backend even if I know logic how backend and api works should learn code is a manner way rn

3 Replies
1

Shubham

Fearlessย โ€ขย 2m

Day 10/21 โ€“ JavaScript: Callback, Promise & Async/Await Today I learned how JavaScript handles asynchronous tasks like API calls, file loading, or timers. โšก ๐Ÿ”น Callback โ€“ a function passed into another function function fetchData(cb) { setTimeou

See More
Reply
1

Shubham

Fearlessย โ€ขย 3m

Day 05/21 โ€“ JavaScript Functions & Methods Today I explored one of the most powerful concepts in JavaScript: Functions & Methods. ๐Ÿš€ ๐Ÿ”น Functions are blocks of code designed to perform a specific task. They help in reusability and make code cleaner

See More
Reply
1

Shubham

Fearlessย โ€ขย 2m

Day 11/21 โ€“ JavaScript API Calls ๐ŸŒ Today I explored how to fetch data from APIs in JavaScript using async/await. Copy code Javascript async function getUsers() { try { let response = await fetch("https://jsonplaceholder.typicode.com/users");

See More
Reply
2
Image Description

Hari Krishna

Developer | entrepre...ย โ€ขย 3m

Day6/100: โ€ข def โ€”> Creating a function ( user defined) def name(): Condition Name() โ€”> calling the function ๐Ÿค™๐Ÿป โ€”โ€”โ€”โ€”โ€” Likewise we can create a library ๐Ÿ“š in python ๐Ÿ โ€ข import ( the file we created ) โ€”โ€”โ€”โ€”โ€” Today played with Reeborg rob

See More
2 Replies
8

Chetan Bhosale

ย โ€ขย 

Petpoojaย โ€ขย 11m

TrafficMine Project Updates! Tracker Backend logic is done, did something different approch and it worked! now just need to create dashboard to view all data of the user! good night

Reply
4

Gigaversity

Gigaversity.inย โ€ขย 5m

JavaScriptโ€™s role in software development has fundamentally changed. Once viewed as a tool strictly for frontend interactions, it now plays a significant role in backend infrastructureโ€”driven by the power of Node.js. From agile startups to industry l

See More
Reply
3

Sagar gupta

Full-time Freelancer...ย โ€ขย 1y

Most Javascript Questions Asked in Interview | PART 2 1. What is difference between a for loop and for Each loop Ans: A for loop is traditional loop that uses a counter variable to iterate over an array. ForEach loop is a method that iterate over a

See More
Reply
3
10

Sanskar

Keen Learner and Exp...ย โ€ขย 4m

Day 11 of learning python as a beginner. Topic: creating journal entry program using file I/O. I got a little sidleline from my original plan of editing my to-do list program and created an entirely new program this time for writing a daily journal

See More
Reply
1
10

Download the medial app to read full posts, comements and news.