Creating a Project
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:
- Get the project and setup:
# Clone the repo to your current directory
git clone https://github.com/sinProject-Inc/talk.git
# Install the dependencies
cd /talk
npm install
- Create a database with the name “talk”
- Create a .env file by copying .env.example at the top level of the project
- Rewrite the .env file with your environment variables
- Push the initial schema and data to the database:
npx prisma db push
npx prisma generate
npx prisma db seed
- Install Redis, and run the command:
redis-server
- Run locally
# Start the server and open the app in a new browser tab
npm run dev -- --open