Kailash23 / nmf-app

Understand and reduce your carbon footprint 🌱 iOS & Android.

Home Page:https://nmf.earth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🌱 NMF.earth app

Understand and reduce your carbon footprint


app-store google-play


screenshots

Depfu Contributor Covenant Build Status

Repository for the NMF.earth React Native application, built with Expo, Redux Toolkit and Typescript.


πŸ“¦ Getting started

Installing Dependencies:

$ yarn

Running the app:

$ yarn start

For starting the app on a specfic OS:

$ yarn ios | yarn android

Copy the 2 files that contains secrets and replace them with yours

$ cp app.example.json app.json
$ cp secret.example.ts secret.ts

πŸ‘©πŸΎβ€πŸ’» Development

  • Eslint is used in the project to enforce code style and should be configured in your editor.

  • Typescript is used in the project for typechecking and should be configured in your editor.

You can also check this manually by running:

yarn lint

or

yarn typescript

πŸ›  Testing

Use the following command to run unit tests with coverage:

$ yarn test

Use the following to update unit tests

$ yarn test -u

Use the following to run unit tests in watch mode while developing:

$ yarn test --watch

πŸ“šStorybook

Stories (*.story.tsx) can be automatically added to storyLoader.js with :

$ yarn prestorybook

πŸš€ Deployment

Any branches merged into master will trigger a github action that runs expo publish. During this step app.example.json is used to generate an app.json file for expo's deployment, this is done with the following script scripts/generate-app-json.js.


πŸ‘¨β€πŸ’» Contributors

Have a look here if you want to contribute!

🌐 You can help us with translations with our online tool POEditor.


πŸ† Backers

A big thank you to Christopher Gwilliams and to the Phelps family for their amazing contribution to the Kickstarter!


©️ Open source - licence

Repository and contributions are under GNU General Public License v3.0

About

Understand and reduce your carbon footprint 🌱 iOS & Android.

https://nmf.earth

License:GNU General Public License v3.0


Languages

Language:TypeScript 95.9%Language:JavaScript 4.1%