Giter Site home page Giter Site logo

joserfjuniorllms / io_2014_contacts_demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sdeleuze/io_2014_contacts_demo

0.0 0.0 0.0 119 KB

Dart, Polymer, Paper Sample App from Google IO 2014

Home Page: https://pub.dartlang.org/packages/io_2014_contacts_demo

License: BSD 3-Clause "New" or "Revised" License

Dart 96.89% CSS 3.11%

io_2014_contacts_demo's Introduction

This example is a fork of the io_2014_contacts_demo sample, modified to use the Redstone.dart framework and plugins. Instead of saving the data in the user's browser, this sample uses a webservice built with Redstone, which store the data in a MongoDb instance.

Building and running the application

Before running this example, be sure to have a MongoDB instance available in your environment. By default, the application will try to connect to a local MongoDB instance, and create/use a database named "contacts". Take a look at the bin/server.dart file to change these settings.

If you are using Ubuntu, or other Debian based linux distribution, you can just do the following to install MongoDB:

$ sudo apt-get install mongodb

You can clone this repository using the git tool, or download it as a zip file

$ git clone https://github.com/luizmineo/io_2014_contacts_demo.git

To build the code, use the tool/build.dart script. Be sure to set the DART_SDK environment variable before invoking it:

$ dart tool/build.dart all

The script will produce a build directory, which can be deployed on your server. To test it, you can execute the bin/server.dart script from the build folder:

$ cd build
$ dart bin/server.dart

Now open your browser and go to http://localhost:8080/

Opening in Dart Editor

To import this application in Dart Editor, go to File -> Open Existing Folder... and select the project folder.

To run it, you need to create two launch configurations: One to the server, and another to start the client in Dartium.

Go to Run -> Manage Launches.

To create the server launcher:

  • Create a new command-line launch
  • Set Dart Script to bin/server.dart
  • Set Working Directory to the project path
  • Click on the Apply button

To create the client launcher:

  • Create a new Dartium launch
  • Change Launch Target to URL
  • Set URL to http://localhost:8080
  • Set Source Location to the project path
  • Uncheck the Use pub serve to serve the application option
  • Click on the Apply button

To test the application, start the server, and then the client.

io_2014_contacts_demo's People

Contributors

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