/ Apps

See your city's air pollution measured in daily cigarettes for iOS/Android

See your city's air pollution measured in daily cigarettes for iOS/Android

Sh**t! I Smoke

Know how many cigarettes you smoke based on the pollution of your location.

app-store google-play

:iphone: Try it on Expo

This app is bootstrapped with Expo, you can download the Expo app on the App Store or Play Store, and enter the url provided below. We have 2 release channels:

Release Channel Version Description Url
Production v1.3.1 Same version as Sh**t! I Smoke on the App Store and Play Store. https://exp.host/@amaurymartiny/shoot-i-smoke?release-channel=production
Staging v1.4.0 Latest version currently in development: newest features, may contain bugs. https://exp.host/@amaurymartiny/shoot-i-smoke

:hammer: Build it yourself

Before developing the app, you need to fetch your own API tokens for the following services:

Service Url Comments
World Air Quality Index http://aqicn.org/api/ Required.
Algolia Places https://community.algolia.com/places/rest.html (Get Started button on the bottom) Optional, lower API rates if not provided.
Google Maps for iOS https://developers.google.com/maps/documentation/ios-sdk/start Optional in development.
Google Maps for Android https://developers.google.com/maps/documentation/android-api/ Optional in development.
Sentry Bug Tracking https://sentry.io Optional.
Amplitude Analytics https://amplitude.com Optional. Note: we never track PII.

Then run the following commands:

git clone https://github.com/amaurymartiny/shoot-i-smoke
cd shoot-i-smoke
yarn install

# Replace the API keys placeholders with your own tokens in app.json
# For the optional services you don't want to put an API key, put `undefined`
cp app.example.json app.json

yarn start

This app is created with Expo, using React Native. When you run yarn start, the Expo packager will show, and you can either:

  • install the Expo app, scan the displayed QR code, and run the app on your mobile phone directly.
  • open the Android simulator.
  • open the iOS simulator.

All the code lives in the App/ folder. The app itself is pretty small, so it should be fairly easy to navigate through the files.

GitHub