GithubHelp home page GithubHelp logo

watariclaud / notes_app Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 662 KB

Client side app for the notes application

Swift 1.96% Objective-C 1.18% Dart 45.49% Java 1.06% Kotlin 0.13% CMake 20.04% C++ 24.79% C 1.52% HTML 3.82%

notes_app's Introduction

notes

A new Flutter project.

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

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

Documentation

  • Main entry file is lib/main.dart

    Stateless widget, contains the header and list of notes (or empty with default text 'Add a note') Also contains a button to add a new note

  • lib/components contains all relevant widgets and navigations.

     - Uses stateful widgets to keep track of changes in UI
    
     - Saves notes to local storage on device (sync when online on user prompt)
    
     - Delete note and update on server once online
    
  • lib/models contains the model for a note, as well as relevant json transformer methods for REST API and SQL requests.

     It also contains the database helper methods for local SQL queries
    

The REST API url is defined only once in lib/components/notes_list.dart file as it uses the "/read_notes" endpoint to check network connectivity and update state accordingly.

Build the app

If you want to build the application and run it:

**Ensure you have flutter installed** (Built with: Flutter V3.13.4, Dart v3.1.2)

**Also have Java (preferably 11 for compatibility, (built with Java v11.0.20), along with relevant installations (gradle, platform tools and such (built with gradle-7.6.1, DevTools v2.25.0))).
Refer to the documentations online.**

**Run ``` flutter pub get ``` to install dependencies

**Run ``` flutter run``` to start the app (use an emulator (recommended))

I have only tested the android APK, but if you need to build for iOS, consult relevant documentations and the "/lib/*" files should remain as they are.

Make sure to allow install from unknown sources


Backend server

The backend runs on Node with MongoDB as the database. The code is live on github here

Sample server collection after sync.

notes_app's People

Contributors

watariclaud avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.