Skip to content

Creation of a multi-functional native mobile app from scratch using flutter/nodejs that can be used for outfit suggestions while keeping track of the carbon footprint of your wardrobe

Notifications You must be signed in to change notification settings

hawemily/SynthEthics

Repository files navigation

SynthEthics

An Automatic Carbon Footprint Calculator

Organisation

The organisation structure of this application is according to Connor Aldrich's Flutter: Code Organization (Revised)

The brief can be seen here:

main.dart

The foundation of this Flutter app, aimed to be kept as lightweight as possible

routes.dart

Extracted from main.dart are the routes for this application, equivalent to routing controller in react. Contains routes to publicly accessible node pages, any pages accessible exclusively to a node page will not feature here

For example, see image_taker_page/

theme

Contains a singular style.dart with the app's theme, to be accessed by main.dart

services

Holds web APIs and native interaction code

components

Custom widgets which are used by multiple different screens

screens

Holds a folder for each screen subtree, pages accessible from the main routes are built here. Each directory holds the pages relevant to a specific group.

Backend

run 'npm install' in functions directory to install node dependencies on local machine

run 'npm run start' in terminal to test api

Testing

run 'flutter test' locally to run all tests OR

run 'flutter test' test/<file_name_to_test> to test specifc file

write all tests under test folder with test files named as <file_being_tested>_test

Some resources to help familiarise yourselves with Flutter

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

About

Creation of a multi-functional native mobile app from scratch using flutter/nodejs that can be used for outfit suggestions while keeping track of the carbon footprint of your wardrobe

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published