Code Monkey home page Code Monkey logo

bosch-catalogue's Introduction

bosch-catalogue

Example repository for Dart language, which demonstrates server, client and mobile development and code reuse between them
Note: this code is not super clean and polished, just an example. Pull requests are welcome :-)

Story line

(each line is a commit)
---------------------------

  1. Start with simple server without any additional dependencies. Just listen on the localhost for the requests. NOTE: Put attention on analysis_options.yaml. It's recommended options (and most strict though). To start server run:
  cd server
  pub get
  dart bin/server.dart
  1. Mock database, and define Painting model
  2. Added json_serializable - package for data serialization/deserialization. To generate model, follow the rules.
  3. Combine all together. Add paintings to response, but we require additional Paintings class for that as a container for paintings array ---------------------------
  4. Let's start to creating web app. Add super simple Angular 5 application (see README to build and run)
  5. Add data, views and many more. NOTE: this is not production app, so expect many shitcoding ¯_(ツ)_/¯. Notice /web/lib/paintings_service.dart, main service for data serialization/deserialization
  6. Move all models to separate package, and include it into server and web Notice /web_app/analysis_options.yaml. There is one important line
      plugins:
        - angular
    it enables analyzer support for angular html files
  7. Add mobile application. It's made with Flutter. Notice models reuse in pubspec.yaml and in fetch function

bosch-catalogue's People

Contributors

bunopus avatar

Watchers

 avatar  avatar  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.