This project is a web application that generates theories related to the One Piece universe using OpenAI's API. It provides an interactive interface for users to input their thoughts and receive detailed theories structured in a coherent format.
- ReactJS: A JavaScript library for building user interfaces.
- Vite: A build tool that provides a fast development environment.
- TypeScript: A typed superset of JavaScript that compiles to plain JavaScript.
- Axios: A promise-based HTTP client for the browser and Node.js.
- Bootstrap: A front-end framework for developing responsive and mobile-first websites.
- OpenAI API: Used to generate theories based on user input.
To run this project locally, follow these steps:
- Clone the repository:
git clone https://github.com/LightSenpai7/OnePieceTheoryGeneratingAI.git
- Navigate to the project directory:
cd OnePieceTheoryGeneratingAI
- Install the dependencies:
npm install
- Create a
.env
file in the root directory and add your OpenAI API key:VITE_OPENAI_API_KEY=your_openai_api_key VITE_OPENAI_API_URL=https://api.openai.com/v1/chat/completions
- Start the development server:
npm run dev
Once the development server is running, you can access the application at http://localhost:3000
. The application allows users to input a category and their thoughts, and it generates a detailed theory based on the One Piece universe.
- src/
- api/: Contains API calls to OpenAI.
- components/: Contains reusable components like
Layout
andModal
. - screens/: Contains different screens like
Home
andAITheoryGenerator
. - routes/: Defines the application routes.
- types/: TypeScript interfaces for type safety.
- index.css: Global styles for the application.
- App.tsx: Main application component.
Contributions are welcome! If you would like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature:
git checkout -b feature/YourFeature
- Make your changes and commit them:
git commit -m 'Add some feature'
- Push to the branch:
git push origin feature/YourFeature
- Open a pull request.
This project is licensed under the MIT License. See the MIT License file for details.