β¨οΈ Yet Another Chat App π±
A small chat app built with React Native, Expo, Pusher Chatkit and Gifted Chat.
Clone the repo
git clone https://github.com/oransimhony/yaca.git
Change directory
cd yaca
You need to add two files: config.json
in yaca-app/screens/
and variables.env
in yaca-server/
.
I will work you through the files' structure right now.
PORT=5000
CHATKIT_INSTANCE_LOCATOR=XX:XXX:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
CHATKIT_SECRET_KEY=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
PORT
: The port in which the server will run, if you change this remember to change it in the app as well.
CHATKIT_INSTACE_LOCATOR
and CHATKIT_SECRET_KEY
: Insert the according values from your Pusher Chatkit Dashboard
{
"CHATKIT_INSTANCE_LOCATOR": "XX:XXX:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"ip": "XXX.XXX.XXX.XXX"
}
CHATKIT_INSTACE_LOCATOR
: Insert the according value from your Pusher Chatkit Dashboard
ip
: Insert the ip in which your server runs, don't include the port just the ip
REMEMBER TO PLACE THE FILES IN THE CORRECT LOCATIONS OR THIS WILL NOT WORK
Enter the app directory
cd yaca-app
Install the dependencies using your preferred manager
npm install
yarn install
Start the project using your preferred manager
npm start
yarn start
Enter the server directory
cd yaca-server
Install the dependencies using your preferred manager
npm install
yarn install
Start the project using your preferred manager
npm start
yarn start
And now you are ready to go! π₯
Enjoy π