Giter Site home page Giter Site logo

yaroslavchuiko / glassychat Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 630 KB

๐Ÿ’Ž๐Ÿ’ฌ A realtime chat appilication built with using serverless tecknologes such as Pusher and PlanetScale.

Home Page: https://glassy-chat.vercel.app

JavaScript 6.46% TypeScript 92.62% CSS 0.92%
nextauth nextjs planetscale prisma pusher pwa radix-ui react reactquery tailwindcss

glassychat's Introduction

Glassy Chat

nextdotjs TypeScript react trpc zod reactquery nextauth zustand radixui tailwindcss pusher planetscale Prisma mysql pwa

A simple serverless chat.

Website


About

This is a T3 Stack project bootstrapped with create-t3-app.

A chat application, written in Next.js, with the use of tRPC, Zustand, Radix UI, Tailwind CSS, Pusher, Prisma.

Setup & Run

Prior to setup, create an .env file based on the .env.example. Then proceed:

  1. npm install
  2. Create PlanetScale MySQL database and add connection string as value for DATABASE_URL
  3. npx prisma db push
  4. Generate a secret value for NEXTAUTH_SECRET. You can generate a new secret on the command line with: openssl rand -base64 32
  5. Create a Discord OAuth App and add values for DISCORD_CLIENT_ID and DISCORD_CLIENT_SECRET
  6. Create a GitHub OAuth App. Make sure to set Authorization callback URL to http://localhost:3000/api/auth/callback/github. After that add values for GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET
  7. Create Pusher account and add values for PUSHER_APP_ID, PUSHER_APP_KEY, PUSHER_APP_SECRET, PUSHER_APP_CLUSTER, NEXT_PUBLIC_PUSHER_APP_KEY, NEXT_PUBLIC_PUSHER_APP_CLUSTER
  8. Add values for SUPER_ADMIN_NAME and SUPER_ADMIN_EMAIL
  9. npx prisma db seed
  10. npm run dev

Snapshots

Sign in

image

Chat

image

image

image

image

image

image

glassychat's People

Contributors

yaroslavchuiko avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

0xworkio

glassychat's Issues

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.