Skip to content
/ nmf-app Public
forked from NMF-earth/nmf-app

Understand and reduce your carbon footprint ๐ŸŒฑ iOS & Android.

License

Notifications You must be signed in to change notification settings

fikrif/nmf-app

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒฑ 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.

  • Prettier is also used and apply automatically by eslint

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

You can check this manually by running:

yarn lint

or

yarn typescript

You can ask eslint to fix issues by running:

yarn lint:fix

๐Ÿ›  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

๐Ÿ“— Sustainable guide

To place a new .md files inside guides folder or modify existing guide and then run node scripts/generate-guides.js to generate a new sustainable guide. Images can be used in the .md as follow : ![Earth](earth.png) and should be place in assets/images/guide.


Same for methodology screen, just run node scripts/generate-methodology.js to update methodology.json from methodology.md.


๐Ÿ—ฃ Generate Translation Files

Run node scripts/generate-translation-files.js in order to create the files needed for the new language you want to add to the app.


๐Ÿš€ 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.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 93.9%
  • JavaScript 6.1%