This project is a Next.js application that uses artificial intelligence to generate images based on user prompts. It utilizes technologies such as Next.js, Tailwind UI, Prisma ORM, and PostgreSQL.
- Next.js: A React framework for server-side rendering.
- Tailwind UI: A utility-first CSS framework.
- Prisma ORM: An open-source database toolkit.
- PostgreSQL: A powerful, open-source object-relational database system.
-
Clone the repository:
git clone https://github.com/chandanone/image_gen cd image_gen
-
Install the dependencies:
npm install
-
Set up the PostgreSQL database:
- Create a new database in PostgreSQL.
- Update the
.env
file with your database connection details.
-
Run the Prisma migrations to set up the database schema:
npx prisma migrate dev
-
Start the development server:
npm run dev
- Open the app in your browser at
http://localhost:3000
. - Enter a prompt in the input field and submit.
- The AI will generate an image based on your prompt and display it on the screen.
- The user geenrated images can be viewd by lcicking the user profile image icon.
- User-friendly interface with Tailwind UI.
- Real-time image generation based on user input.
- Secure and efficient data handling with Prisma ORM and PostgreSQL.
We welcome contributions! Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes and commit them (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Open a pull request.
This project is licensed under the MIT License.
For any questions or support, please contact Chandan.