3rChuss / chatApp

Chat App with node.js, graphql & react
1 stars 0 forks source link

Realtime chat app

Real-time chat app made with Nodejs, Express and the wrong database (MySQL)

Built using

Front-end

Back-end

Features

config file:

  "development": {
    "username": "DDBBusername",
    "password": "password",
    "database": "database",
    "host": "127.0.0.1",
    "dialect": "mysql"

Client:

Open client/src/ApolloProvider.js & change the urls:

{
  uri: "http://localhost:4000"
  uri: "ws://localhost:4000/graphql"
}

Run client development server:

cd client
npm install
npm start

Server:

Open server/config/config.json & update the development keys values to match your local database credentials.

Install 'sequelize-cli' & 'nodemon' as global packages, if you haven't yet.

Run this command to migrate the SQL table to your own local PSQL: sequelize db:migrate

For test porpuses run this command to seed your local database with some examples sequelize db:seed:all

Run backend development server:

cd ./
npm install
npm run dev