IntraLAN Wireless Com or NetCon is a communication and data sharing application that can be used for effective communication over local area networks without having to route data via the public internet. This serves significant benefits in comparison to traditional networking in the form of speed, security and connectivity, The solution is a cross platform client that can be used across devices and operating systems in an easy and convenient manner.
-
native-app/
Contains the source code for the Android and iOS clients. The directory contains the JavaScript code in React Native and the Android build for the same.intralan-web/
Contains the web client written in React and the corresponding desktop client ported via electron.
-
- Phone Calls End to end encrypted calls that do not require internet connection and are fast and reliable. Say goodbye to dropped connections. :)
- Chats Safely send and recieve messages without sending them to places that you dont intend to. No database and hence all your data is in your hands. 🔒
- File Sharing Send any files of any size at fast speeds between any devices. Next time you have notes to send, NetCon has got you covered. 📁
-
-
- Android SDK v28 installed
- ndk bundle Download from here
- Extract and copy the downloaded ndk files to the
/home/user/Android/Sdk/ndk
folder
-
Start by cloning the repository.
-
Since React Native does not run in a nodejs environment, an external package for using nodejs and hence the HTTP server for broadcasting is used by the application.
-
Once cloned, navigate to the
native-app
directory. -
Run
npm i
to install all dependencies. -
Navigate to
nodejs-assets/nodejs-project
and runnpm i
to install the dependencies for the nodejs package for React Native. -
Go back to the
native-app/
directory and make a file calledlocal.properties
and add the following lines to it:sdk.dir=/home/<user>/Android/Sdk ndk.dir=/home/<user>/Android/Sdk/ndk/android-ndk-r21b Replace the <user> with your username
-
Next step is to copy the files in the
native-app/dependency
directory to thenative-app/node_modules/nodejs-mobile-react-native/android/
directory. Replace the src folder with the one from dependency. -
Once all this is done, go to the
native-app/android/
folder and run the following:chmod +x gradlew ./gradlew clean
-
Connect your phone via USB to the computer and make sure that USB debugging is enabled. Verify that the device is connected using
adb devices
command in the terminal. -
Run
npx react-native run-android
with the phone connected. This should start building the application -
Open another terminal and run
react-native start
to fire the development server. -
Once the build is completed, the application should be installed on your device.
-
Open the app and shake your device to open the developer settings. Alternately you can also press d on the terminal to start it. Go to settings -> debug server host & port -> and add your laptops ip followed by port number. Eg:
192.168.1.20:8081
-
The application can now be hot reloaded and the changes will be built and sent over the network.
-
The web client is written in React and the desktop client is ported in electron. The following steps can be followed to build the clients:
cd intralan/web/ # Install dependencies for the frontend npm i cd src/backend # Install dependencies for the backend npm i # Start the backend server nodemon server.js cd .. # Start the frontend npm start # For running the desktop client npm run electron-dev
- After successfully completing the above steps, the application should be up locally on port
3000
and the peer server should be up on port5000
- Additionally, the electron window should start in case the last command was run.
- After successfully completing the above steps, the application should be up locally on port
-
-
Pull requests are welcome.