Skip to content

serudda/text-snap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

x

Build Status License: MIT

Text Snap Monorepo Overview 🗂️

Welcome to Text Snap! This repository houses multiple services and applications that collectively form the core of our platform. Below is an overview of each application, along with instructions on how to get started.

Table of Contents 📑


Prerequisites 🛠️

Before using this project, ensure you have the following installed:

Installation 🚀

To set up the project, clone the repository and install the dependencies:

git clone https://github.com/serudda/text-snap.git
cd text-snap

Environment Variables 🔑

To run the project, you'll need to configure environment variables.

You need to add everything to .env.local, but only configure OPENAI_API_KEY.

Here's a sample configuration:

DATABASE_URL=http://localhost:3000

NEXTAUTH_SECRET=supersecret
NEXTAUTH_URL=http://localhost:3000

LEMON_SQUEEZY_URL=http://localhost:3000
LEMON_SQUEEZY_API_KEY=http://localhost:3000

TWITTER_CONSUMER_KEY=http://localhost:3000
TWITTER_CONSUMER_SECRET=http://localhost:3000

OPENAI_API_KEY=<YOUR-OPEN-AI-KEY>

NEXT_PUBLIC_POSTHOG_KEY=http://localhost:3000
NEXT_PUBLIC_POSTHOG_HOST=http://localhost:3000

General Setup ⚙️

From the root of the project, you can run the following commands:

  1. Install dependencies:
pnpm install
  1. Run DB Generate:
pnpm db:generate
  1. Run build:
pnpm build
  1. Run Development:
pnpm dev

Ports

Project Structure 📂

Apps

  • apps/nextjs:Main App built with Nextjs.
  • apps/payments: Manages payment processing

Packages

  • packages/ai: Contains OpenAI-related functionality. This package includes utilities for handling AI operations such as text formatting, language detection, grammar correction, and content improvement.

  • packages/api: The API package, managing TRPC configuration and controllers for the backend.

  • packages/auth: Manages authentication using NextAuth.

  • packages/config: Contains configuration files and shared settings for the project.

  • packages/db: Prisma-based database management package.


Utilities 🔧

  • ESLint: Linting tool to maintain code quality.
  • Prettier: Code formatter for consistent code style.

License 📜

This project is licensed under the MIT License - see the LICENSE file for details.

About

Free and Open-Source tool for Accurate Text Formatting using AI

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published