This project is a web application based on user prompts using Google's Generative AI. The application utilizes Node.js, Express, and EJS for templating.
- User-friendly interface to input prompts
- Generates using Google Generative AI
- Simple and responsive design
- Node.js installed
- npm (Node Package Manager) installed
- Google Generative AI API Key
-
Clone the repository:
git clone https://github.com/ashishalf/google-gen-ai cd google-gen-ai
-
Install dependencies:
npm install
-
Create a
.env
file in the root of your project and add your Google Generative AI API key:API_KEY=your-google-generative-ai-api-key
-
Start the server:
node server.js
-
Open your browser and go to
http://localhost:3000
. -
Enter a prompt in the input field and click "Generate" to get a generated story based on your prompt.
project-root/
│
├── views/
│ ├── index.ejs
│ └── layout.ejs
│
├── public/
│ ├── styles.css
│
├── .env
├── server.js
└── package.json
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.