Chat Room app made with React Native, Nativepaper, nodejs, express js and socket io.
- React Native with React Hooks, NativeBase and express
- React Navigation 4.0, Redux, Redux Thunk
- socket io 4 , express 4.17
- MongoDb Atlas for database
npm install
to install the dependecies(both client and server)- set database connection in the
server/app.js
for examplemongodb+srv://test1:1111111@cluster0.0tiwc.mongodb.net/database
npm run server
to start the server onhttp://localhost:3000
- set the server url in the
/screens/chatroom.js
for exampleconst server_url = "http://192.168.1.103:3000"
or runipconfig
in cmd/terminal to get the Wireless LAN adapter Wi-Fi ans set one of the ips int the server url likeconst server_url = "255.255.255.0"
NOTE : DO NOT SET http://localhost:3000 in const server_url
npm start
to run React Native client on the running Android emulator