GithubHelp home page GithubHelp logo

letsvote's Introduction

letsvote

LetsVote demonstrates how code can be shared across web, mobile, and the server. Check out the blog post for more detail.

It uses Flutter for iOS / Android, Polymer for the web, and shelf on the server

How to run

Use pub to run the web app:

cd letsvote_web
pub serve

Use flutter to run the mobile app:

cd letsvote_mobile
flutter run

Use dart to run the web server:

cd letsvote_web
pub run bin/server.dart

Configuration

To configure the web server each app points to:

Web: Use letsvote_web/web/config.yaml

Flutter: Use letsvote_mobile/config.yaml to configure what server the web connects to.

IntellJ multi-module setup

It is convenient to have a single project that contains each sub-project as a module.

  1. open project settings (cmd+;)
  2. open "Modules" page
  3. remove the exisiting module
  4. click "+" and select letsvote_mobile.iml file
  5. click "+" and select letsvote_web.iml file
  6. click "+" and select letsvote_server.iml file

After Step 3 Intellij will need the Flutter SDK to be set again. Go to Preferences (cmd+,) and re-select your flutter SDK path

letsvote's People

Contributors

johnpryan avatar

Watchers

James Cloos avatar Ben Keller 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.