VagnerNerves / nlw-ia-mastery-092023

Developed the video transcription project with AI and requests to OpenAI's AI, aiming at generating titles, descriptions, and other options.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project NLW IA Mastery

Project NLW IA Mastery

Developed the video transcription project with AI and requests to OpenAI's AI, aiming at generating titles, descriptions, and other options.

🧭 Table of contents

πŸŽ₯ Implementation Video

Project.NLW.IA.Mastery.mp4

πŸ‘ Learning and more Implementations

  • Learned to use OpenAI's API.
  • Learned to convert the video to MP3 using ffmpeg.wasm through the user's web browser.

πŸ’‘ Technologies Used

Back-end

Front-end Web

πŸ“‚ Folder Structure

app
.
.
β”œβ”€β”€ upload-ai-api               # Project Back-end
β”‚   β”œβ”€β”€ src                       # Source files
β”‚         β”œβ”€β”€ lib                   # Contains the connections
β”‚         β”œβ”€β”€ routes                # Contains the routes
β”‚         . server.ts               # Aplication entry
β”‚   β”œβ”€β”€ tmp                       # MP3 files saved for transcription
β”‚   . .env                        # Environment variables
β”‚   . routes.http                 # Executing routes whit Rest Client
.
β”œβ”€β”€ upload-ai-web               # Project Front-end Web
β”‚   β”œβ”€β”€ src                       # Source files
β”‚         β”œβ”€β”€ components            # Contains all global react components
β”‚         β”œβ”€β”€ ffmpeg                # Contains ffmpeg files
β”‚         β”œβ”€β”€ lib                   # Contains the connections
β”‚         . main.tsx                # Aplication entry react
β”‚   . index.html                  # Aplication entry
β”‚
.
└── README.md

πŸš€ Running the Project

Clone the project

  git clone https://github.com/VagnerNerves/nlw-ia-mastery-092023.git

Back-end

Enter the project directory

  cd nlw-ia-mastery-092023/upload-ai-api

Install with dependencies

  npm install

Create the file '.env' following the example in the '.env.example' file.

To create and obtain the OpenAI key, visit https://platform.openai.com/account/api-keys."

Create DB

  npx prisma migrate dev

Create data in the prompt table

  npx prisma db seed

Start the server

  npm run dev

Front-end Web

Enter the project directory

  cd nlw-ia-mastery-092023/upload-ai-web

Install with dependencies

  npm install

Start the server

  npm run dev

🌎 License

This project is under the MIT license. See the LICENSE file for more details.

βœ’ Author

Author Vagner Nerves

Vagner Nerves

Made with love and hate πŸ˜…, get in touch!

Linkedin Badge Gmail Badge GitHub Badge

About

Developed the video transcription project with AI and requests to OpenAI's AI, aiming at generating titles, descriptions, and other options.

License:MIT License


Languages

Language:TypeScript 89.1%Language:JavaScript 7.1%Language:CSS 2.9%Language:HTML 1.0%