Skip to content

SilasRodrigues19/NLW-IA-API

Repository files navigation

Contributors Forks Stargazers Issues MIT License


Logo

upload.ai

Transcribe videos and generate efficient texts and scripts
Demo Report Bug

Table of Contents
  1. About The Project
  2. Getting Started
  3. Contributing
  4. License
  5. Contact

About The Project

Light Desktop Dark Desktop
Preview Preview
Light Mobile Dark Mobile
Preview Preview

Project built during NLW AI, consists of an application for transcribing videos. The application flow is to receive an mp4 as input, which will be converted into mp3 to obtain the transcription of this audio and later the user can choose one of the pre-configured Prompts and optionally insert some keywords mentioned in the video, then they can execute it to allow AI to generate the response

Built With

Technologies used in the project.

Frameworks

  • Fastify Fast and low overhead web framework, for Node.js.

Technologies

  • TypeScript A strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.

  • Prisma Next-generation Node.js and TypeScript ORM.

Tools

  • Zod TypeScript-first schema validation with static type inference.

Prerequisites

  1. Create an OpenAI account in this link:
https://platform.openai.com/signup?launch
  1. Access the following link and generate your apiKey
https://platform.openai.com/account/api-keys
  1. After cloning the repo, rename .env.example to .env and paste your apiKey value
  # .env file
  DATABASE_URL="file:./dev.db" # paste the address of your bank inside the quotation marks if it is not local
  OPENAI_KEY="" # paste your apiKey inside the quotes

Installation

  1. Clone the repo
    git clone https://github.com/SilasRodrigues19/NLW-IA-API.git
  2. Install dependencies (you can use npm, pnpm, yarn or anything else)
    pnpm install
  3. In the project directory, you can run with the following
    pnpm start
  4. Open the link below to view the app it in your browser.
      http://localhost:3333/
  5. To run database seed
  pnpm prisma db seed
  1. Initialize the prism, generate and run the migrations
      pnpm prisma init && pnpm prisma generate && pnpm prisma migrate dev
  2. To run prisma studio and view the database
      pnpm prisma studio

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Silas Rodrigues - @jinuye1 - [email protected]

Project Link: https://github.com/SilasRodrigues19/NLW-IA



🔼 Back to top

Releases

No releases published

Packages

No packages published