![ClientImage](https://private-user-images.githubusercontent.com/98953475/329237913-fe8dfd1c-462d-46d2-aa24-5792b36e23f2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI0NDczOTAsIm5iZiI6MTcyMjQ0NzA5MCwicGF0aCI6Ii85ODk1MzQ3NS8zMjkyMzc5MTMtZmU4ZGZkMWMtNDYyZC00NmQyLWFhMjQtNTc5MmIzNmUyM2YyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MzElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzMxVDE3MzEzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFmZTk5NDRiMTk3ZmViNTQwNzI0NmM1ODkxMGZiZjM2MDU0OGIwMWU1M2ZjZWY4M2EyMjdhNzAwY2E2ODE5MDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.itVlRf5-NVoj_TqHRmglOBIUydUYZzp-DeCWYSpBw54)
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
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!