sinpro.dev
Docs
Dev Environment
VSCode Workspace Extensions
  • Company Information
    • Portfolio
    • About
    • Services
    • Events
  • Dev Environment
    • macOS Settings
    • Chrome Extensions
    • VSCode Workspace Settings
    • VSCode Workspace Extensions
    • Global NPM Packages
    • npm-check-updates
    • SvelteKit
    • Customize Zsh
    • ChatGPT Prompts
    • Tailwind CSS
    • Warp
    • Keyboard Shortcuts
  • Assets
    • Assets
    • JPG/PNG to AVIF
    • TTF to WOFF2
  • Clean Code
    • Clean Code
    • Format
    • Quality
    • Variables
    • Functions
    • Objects and Data Structures
    • Classes
    • Concurrency
    • Error handling
    • Comments
  • Code Style
    • TypeScript Config
    • Prettier
    • ESLint
    • Stylelint
  • Testing
    • Vitest
    • Playwright
  • Git
    • Git Branches and Commits
    • Git Hooks
    • Git User Profiles
    • Git for Windows
  • GitHub
    • GitHub Issues
    • GitHub Pull Requests
    • GitHub Repository Settings
    • GitHub Branch Protection
    • GitHub Actions
  • Code Quality
    • SonarCloud Coverage
  • Server
    • SSH
    • PM2
    • Caddy
    • Updating the server
    • ngrok
  • Team sinProject
    • Our Team Policy
    • Equipment and Supplies
    • Books
    • Slack
    • Locales
    • Funny Apps
    • Docs History
  • Talk
    • Talk
    • Creating a Project
    • App Structure

Talk

Creating a Project

Edit this page

Prerequisites

  • MySQL Community Server 8.0.30 or higher
  • Node.js 18.4.0 or higher
  • npm 8.13.2 or higher

Prerequisites for Text-to-Speech

  • Set up Google Cloud Text-to-Speech

Prerequisites for Translation

  • Set up DeepL API

Setting up the project

Here are the steps:

  1. Get the project and setup:
Bash
# Clone the repo to your current directory
git clone https://github.com/sinProject-Inc/talk.git

# Install the dependencies
cd /talk
npm install
  1. Create a database with the name “talk”
  2. Create a .env file by copying .env.example at the top level of the project
  3. Rewrite the .env file with your environment variables
  4. Push the initial schema and data to the database:
Bash
npx prisma db push
npx prisma generate
npx prisma db seed
  1. Install Redis, and run the command: redis-server
  2. Run locally
Bash
# Start the server and open the app in a new browser tab
npm run dev -- --open
Talk App Structure
© sinProject. v0.73.0
On this page
  • Creating a Project
  • Prerequisites
  • Prerequisites for Text-to-Speech
  • Prerequisites for Translation
  • Setting up the project