Chat app made with React Native, NativeBase, Apollo Hooks and Sequelize.
Chat app made with React Native, NativeBase, Apollo Hooks and Sequelize.
m:n
relationsn:1
relationscd server
and npm install
to install the dependeciesserver/src/data/connectors.js
for example new Sequelize('postgres://dbuser:password@localhost:5432/chat',...
db.sync({ force: true }).then(async () => await seed()).catch(error => console.log(error));
in the server/src/data/connectors.js
to seed the databasenpm run start
http server and GraphQL playground wil be loaded on http://localhost:5000
and subscriptions on the ws://localhost/graphql
cd client
and yarn install
to install the dependeciesclient/src/App.js
for example const uri = '10.0.2.2:5000';
or const uri = '192.168.0.185:5000';
yarn run android
to run React Native client on the running Android emulator[email protected]
, 123456