The official Wikipedia KaiOS app. KaiOS is a web-based mobile operating system that enables a new category of smart feature phones, a successor of the discontinued Firefox OS.
The Wikipedia KaiOS app is built with Preact, we use Cypress for testing, and Translatewiki for translations. Tasks and issues are tracked on Phabricator.
- Make sure git is installed:
brew install git - Make sure node is installed:
node -vorbrew install node - Make sure npm is installed:
npm -vorbrew install npm - Make sure the Firefox browser is installed
- Create a directory for code:
mkdir ~/code && cd ~/code - Download the app source repository:
git clone https://github.com/wikimedia/wikipedia-kaios.git
- Make sure you are in the source directory:
cd wikipedia-kaios - Downloading the latest code:
git pull - Install app dependencies:
npm install - Build the app:
npm run dev
Now the app is running on your computer at http://127.0.0.1:8080 in Firefox. You can open the Firefox Developer Tools and use the Responsive Design Mode to interact with the app in a more appropiate setting.
- Create a directory for code:
mkdir ~/code && cd ~/code - Download the app source repository:
git clone https://github.com/wikimedia/wikipedia-kaios.git - Go to the app source:
cd wikipedia-kaios
- Install app dependencies:
npm install
- Connect your device to your computer using a USB cable
- Enable debug mode on the device by typing:
*#*#33284#*#* - Check that adb is running and sees your device:
adb devices
- Deploy to device, this will take a few minutes:
npm run deploy
The Wikipedia app should be running on your device now.
npm install && npm run build && npm run dev
npm test
npm run cypress:open
- Make sure you are in the source directory:
cd ~/code/wikipedia-kaios - Pull the latest changes:
git pull - Install latest dependencies:
npm install - Rebuild the app:
npm run build - Redeploy the app:
npm run deploy