To setup the development environment for Android on linux (Ubuntu 20.04), follow these steps:
Your machine should have Npm, React Native installed.
Note: Preferable versions
Version | |
---|---|
node | 16.13 |
java | 11 |
It is recommended to use nvm for managing multiple node version: https://github.com/nvm-sh/nvm
- Check the node and npm version by running following commands.
node -v
npm -v
For React Native environment:
- Choose the "React Native CLI Quickstart" tab at the top
- and select "linux" and "android" underneath.
You can get your own fork/copy of Learning-Credential-Wallet by using the Fork button.
You need to clone (download) it to a local machine using
git clone https://github.com/Your_Username/learner-credential-wallet.git
This makes a local copy of the repository in your machine.
Once you have cloned the learner-credential-wallet
repository in GitHub, move to that folder first using the change directory command.
This will change directory to a folder
cd learner-credential-wallet
Move to this folder for all other commands.
Run the following commands to see that your local copy has a reference to your forked remote repository in GitHub
git remote -v
By running the above command, you can see that the local copy has a reference to the forked remote repository in GitHub.
origin https://github.com/Your_Username/learner-credential-wallet.git (fetch)
origin https://github.com/Your_Username/learner-credential-wallet.git (push)
- Install dependencies
npm install
- Run application in dev environment
npm start
npm run android
In the future it would be a good idea to use docker for building the app to isolate the developer's system from possibly malicious code installed through dependencies. This could possibly work: https://github.com/react-native-community/docker-android