GithubHelp home page GithubHelp logo

steffany-martins / imaginuts Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 91 KB

ImagiNUTS: A page that you can create images with your mind using Open AI API,

License: MIT License

JavaScript 3.59% TypeScript 71.94% CSS 7.73% SCSS 16.75%

imaginuts's Introduction

ImagiNUTS

ImagiNUTS Logo

ImagiNUTS is a repository containing a client-side component for an OpenAI-based image generation project. Users can provide a prompt, and the system will generate images based on that prompt.

Preview Project Running

Click to Watch the Video

Getting Started

To run this project, follow these steps:

Prerequisites

Before you begin, make sure you have the following installed:

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/Steffany-Martins/ImagiNUTS.git
  2. Change to the project directory:

    cd ImagiNUTS
  3. Install project dependencies:

    npm install
    # or
    yarn install

Configuration

Before running the project, you need to configure your OpenAI API key. You can provide your API key either via environment variables or as part of the project's configuration.

Environment Variable

Create a .env.local file in the project root directory and add your OpenAI API key:

API_KEY=your-api-key-here

Project Configuration

In the Form.tsx file, make sure the publicRuntimeConfig object is set up correctly:

const apiKey = (typeof publicRuntimeConfig !== 'undefined' && publicRuntimeConfig ? publicRuntimeConfig.apiKey : process.env.API_KEY);

Running the Project

Once you have configured your API key, you can run the project locally using one of the following commands:

  • Development mode:

    npm run dev
    # or
    yarn dev
  • Build and start in production mode:

    npm run build
    npm start
    # or
    yarn build
    yarn start

The project should now be running locally at http://localhost:3000.

Technologies Used

  • React - JavaScript library for building user interfaces.
  • Next.js - A React framework for server-rendered applications.
  • OpenAI API - Used for generating images based on user prompts.
  • Tailwind CSS - A utility-first CSS framework.
  • dotenv - Used for managing environment variables.
  • Other dependencies as listed in the package.json file.

License

This project is licensed under the MIT License - see the LICENSE file for details.

imaginuts's People

Contributors

steffany-martins avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.