Coder Social home page Coder Social logo

chat-platform's Introduction

Chat-platform

Basic chat platform with NodeJS, React & GraphQL

Preview

Screen

Screen

Requirements

  • In a new project, install the apollo-server and graphql dependencies using:
npm i apollo-server graphql
  • Sequelize ORM
$ npm i --save sequelize

$ npm i sequelize-cli -g

$ npm i --save mysql2

Sequelize model

$ sequelize model:generate --name User --attributes username:string,email:string

$ sequelize model:generate --name Message --attributes content:string,uuid:uuid,from:string,to:string

$sequelize model:generate --name Reaction --attributes content:string,uuid:uuid

$ sequelize db:migrate

Test Data seeders

$ sequelize seed:generate --name create-users

$ sequelize seed:generate --name create-messages

$ sequelize db:migrate:undo:all

$ sequelize db:migrate

$ sequelize db:seed:all

Install

npm i && cd client/ && npm i

run

npm run dev

cd client/

npm run start

chat-platform's People

Contributors

styvensoft avatar

Stargazers

Grace-Endy avatar

Watchers

James Cloos avatar  avatar

chat-platform's Issues

Display the conversations instead of the list of user within the sidebar

Is there a way to display the existing conversations instead of the list of user? Because, for instance if we have 5000 users, that would have no sense to display all the users within the sidebar, having a conversation table, which would contain users relationship(I mean users who have started any conversation in the past), that would be much more easier.

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.