Real-time chat app made with Nodejs, Express and the wrong database (MySQL)
"development": {
"username": "DDBBusername",
"password": "password",
"database": "database",
"host": "127.0.0.1",
"dialect": "mysql"
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
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