Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Chat app made with React Native, NativeBase, Apollo Hooks and Sequelize.

NotificationsYou must be signed in to change notification settings

nemanjam/rn-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Chat app made with React Native, NativeBase, Apollo Hooks and Sequelize.

Features

  • JWT auth with email and password strategy
  • Users, Groups, Chats, Profile, Login, Register, Group Details screens
  • Users/Friends, Public/Private Groups, All Users/Group Users tabs, Drawer, Toasts
  • queries for users, friends, chats, public and private groups
  • create, edit, delete group, add, remove user from group mutations with cache updates
  • add, remove friend mutations with cache updates
  • refetching on the Users, Groups and Chats screens
  • message in chat added, group added and message in group added subscriptions
  • cursor Relay pagination on the Users list
  • Sequelize User, Group, Chat, Message models
  • GroupUser, ChatUser, BannedGroupUser, Friendsm:n relations
  • Messages-User, Messages-Chatn:1 relations
  • database seed

Libraries used

  • React Native 0.61 with React Hooks, NativeBase
  • React Navigation 4.0, Redux, Redux Thunk
  • Apollo Client, Apollo Server
  • Sequelize, PostgreSQL
  • Formik, Faker, React Native Gifted Chat

Installation and running

Server

  • cd server andnpm install to install the dependecies
  • set database connection in theserver/src/data/connectors.js for examplenew Sequelize('postgres://dbuser:password@localhost:5432/chat',...
  • uncommentdb.sync({ force: true }).then(async () => await seed()).catch(error => console.log(error)); in theserver/src/data/connectors.js to seed the database
  • npm run start http server and GraphQL playground wil be loaded onhttp://localhost:5000 and subscriptions on thews://localhost/graphql

Client

  • cd client andyarn install to install the dependecies
  • set the server url in theclient/src/App.js for exampleconst uri = '10.0.2.2:5000'; orconst uri = '192.168.0.185:5000';
  • yarn run android to run React Native client on the running Android emulator
  • login with theemail@email.com,123456

Screenshots

Database ER diagram

About

Chat app made with React Native, NativeBase, Apollo Hooks and Sequelize.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp