Giter Club home page Giter Club logo

glocal-translation-chat's Introduction

GLOCAL- AI SaaS Chat App with Real-Time Translation

Overview

Welcome to our SaaS chat app developed using Next.js and TypeScript, bringing global communication to the next level with real-time translation powered by Google Cloud Artificial Intelligence services. The app operates on a tiered subscription model, providing both free and pro plans tailored to users' needs. Stripe integration is employed for seamless subscription handling.

Problem It Solves

There are over 7,000 languages spoken today but despite the diversity of languages, communication barriers continue to limit our ability to connect and understand each other.This is especially true in a globalized world where people are constantly travelling and connecting with others from different parts of the world.In fact, language barriers are often cited as a major hindrance to international trade and diplomacy.

Problems like this gave birth to GLOCAL - A TRANSLATION and also a CHAT app.

Glocal is a translation and chat app that helps you translate your native language into any other language in the world with relative ease.It also helps to communicate with anyone, anywhere in the world with a different language. When you receive a message in any language, it automatically translates to your chosen language. Similarly, when you send a message in any language to another person, it is converted to their preferred language. This two-way translation not only ensures seamless conversation but also eliminates the need for a common medium language.

Techstack Used

  • Next.js - The React framework for building web applications.
  • React.js - A JavaScript library for building user interfaces.
  • TypeScript - A typed superset of JavaScript that compiles to plain JavaScript.
  • Framer Motion - A library for creating smooth animations in React applications.
  • Google Cloud Platform - A suite of cloud computing services provided by Google.
  • Artificial Intelligence - Google Cloud AI for language translation
  • Firebase & Firestore - Firebase is a mobile and web application development platform. Firestore is a NoSQL cloud database.
  • Stripe - A platform for online payment processing.
  • Zustand - A small, fast, and scalable state management library for React.

Application Workflow

Upon registering or logging in, users are assigned unique identifiers by Firebase Authentication, ensuring secure access to their account information. This user data, encompassing details like display names and profile pictures, is stored in Firebase Realtime Database or Firestore, maintaining a personalized experience for each user. The app offers flexibility with a choice between a free plan and a paid plan. The free plan, while providing access to essential features, may impose constraints on factors like message limits or storage capacity. Firebase's pricing plans, tailored to usage, enable users to seamlessly transition to a paid plan for enhanced scalability and access to additional functionalities. This strategic approach to user plans not only allows users to tailor their experience based on their needs but also provides a scalable infrastructure, making the chat app adaptable to varying usage patterns. The seamless integration of Firebase services facilitates a smooth user journey while ensuring the app's sustainability and growth.

Some Screenshots

Homepage

Screenshot_4-3-2024_2234_glocal-chat-deepak-kushwaha vercel app-overlay-overlay-overlay

Pricing Page

Free User has access to only free features and has to pay to unlock all features.

Screenshot_4-3-2024_1616_glocal-chat-deepak-kushwaha vercel app

PRO vs FREE User

PRO plan supports multiple languages while free supports only two languages.

imgonline-com-ua-twotoone-36hRmU5BQb

In Free plan users can only have two members per room

Screenshot (903)

In Free plan users can only send only 20 messages per room

Screenshot (904)

Stripe Payment to Purchase Pro Plan

Test Card Number: 4242 4242 4242 4242
Expiry Date: Any future date
CVC: Any 3-digit number

Note: Please note that this is a test card number provided by Stripe for testing purposes. It will simulate a successful payment. In the current development phase, our Stripe integration is in test mode. In this mode, Stripe accepts payments for addresses outside India for testing purposes. You can use the below given test address or any other address outside India

Test Address: Country: Switzerland
PinCode: 8010
City: Zurich

Screenshot_4-3-2024_21324_checkout stripe com

Add user to chat and get a sharable link

Screenshot (891)

Documentation page

Screenshot (912)

Chat with real-time translation of messages

demo

Thank you for visiting! If you have any questions or suggestions, feel free to contact!!

Contributing

This Project is open to contributions

Getting Started

Set the env variables


GOOGLE_CLIENT_ID=

GOOGLE_CLIENT_SECRET=

NEXTAUTH_SECRET=

FIREBASE_PROJECT_ID=

FIREBASE_CLIENT_EMAIL=

STRIPE_SECRET_KEY=

STRIPE_PRICE_KEY=

STRIPE_WEBHOOK_SECRET=

NEXTAUTH_URL=http://localhost:3000


Run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

glocal-translation-chat's People

Contributors

deepak814795 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.