Git Product home page Git Product logo

todoapp-node-express-angular-websockets's Introduction

Preface

This TODO app is a hackathon result.

Development time: 24h in total

This is not a full-fledged project and won't be supported.

Technologies

  • Node.js
  • Express.js
  • Passport.js
  • Express.io
  • Angular
  • CoffeeScript

If you will look inside, please bear in mind that the 1st priority was a development speed, and not best practices! That's why the project has some opinionated decisions (the lack of database is one of them).

Hot to run

  1. Install node.js and npm (sudo apt-get install nodejs npm -y)
  2. cd to project dir
  3. run npm install
  4. run npm start
  5. server is available at http://localhost:3000/

There is an upstart config to run the project on ubuntu machine as a daemon. And a simple bash script to upload the project to the host machine.

API

The API is secured with token-based authentication. The example URL is: http://localhost:3000/api/create?access_token=<token>

'get /api/list' - get all todos for the user 'post /api/create' - create a todo 'delete /api/delete/:id' - delete a todo 'post /api/update/:id' - update a todo 'post /api/input' - create a todo using parseable input, e.g something__2d 1 (there are two spaces between title and date)

All post request must contain json payload:

{
"title" : "blabla",
"id" : "can be empty or Integer",
"date" : 1388458223758,
"priority" : 1,
"done" : false
}

Websockets

There is websocket support with realtime UI update. You can try updating the user's todo list via REST API and watch simultaneous updates in browser.

todoapp-node-express-angular-websockets's People

Contributors

mr-mig avatar

Watchers

James Cloos 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.