![ClientImage](https://private-user-images.githubusercontent.com/98953475/329237913-fe8dfd1c-462d-46d2-aa24-5792b36e23f2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ5MDAxODEsIm5iZiI6MTcyNDg5OTg4MSwicGF0aCI6Ii85ODk1MzQ3NS8zMjkyMzc5MTMtZmU4ZGZkMWMtNDYyZC00NmQyLWFhMjQtNTc5MmIzNmUyM2YyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI5VDAyNTEyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE5MGJhODJmMmRhOTdkZDdkZWZiMzQ4Y2NmNjIwZjAwNjE0N2UwYzA2MzIxZmIyNTNmZGMzZjc5NDgwY2NmNjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.MGd5lecqSzc81qMReVV9Co6Yg7GJPWmAhgEvJ2d4JSQ)
This is a frontend demo app for the SAMA server https://github.com/SAMA-Communications/sama-server
Read a complete medium post Introducing SAMA about what is SAMA and what problems we are trying to solve with it https://medium.com/sama-communications/introducing-sama-simple-but-advanced-messaging-alternative-chat-server-524a532e2040
The whole SAMA stack can be tested using https://app.samacloud.io public cloud.
- Make sure you followed SAMA server Development guide first https://github.com/SAMA-Communications/sama-server/blob/main/README.md#development
- Copy
.env.example
to.env
. - generate VAPID keys via
npx web-push generate-vapid-keys
and set Public Key toREACT_APP_PUBLIC_VAPID_KEY
in.env
file npm install
to install dependenciesnpm run start
to run server- access http://localhost:3000 in your browser
There are also other components. Make sure to check Deploying SAMA chat server stack: a comprehensive guide
- In order to develop any application with Capacitor, you will need NodeJS 18 or higher installed
- Follow https://capacitorjs.com/docs/getting-started/environment-setup#ios-requirements guide to make sure you meet iOS requirements
- Follow https://capacitorjs.com/docs/getting-started/environment-setup#android-requirements guide to make sure you meet Android requirements
- Copy
.env.example
to.env
(useREACT_APP_SOCKET_CONNECT=wss://api.samacloud.io/
to connect to PROD live env) - Run
npm run capacitor:build
- To run ios:
npm run ios
or android:npm run android
Join our community for support and discussions:
Any thoughts, feedback is welcome! Please create a GitHub issue for any feedback you have.
Want to support us with some coffee?. Will be much appreciated!