Giter Site home page Giter Site logo

todolite-web's Introduction

ToDoLite Web

A shared todo app to show how to build web applications against the Sync Gateway REST API.

screenshot

The app is a simple shared to-do list manager. Users can create multiple lists, each with its own items that can be checked off when done. Lists are private by default but can be shared with other users.

The app is also available on other platforms: ToDoLite-iOS, ToDoLite-Android.

Getting Started

  1. Clone the repository
  2. Run npm install to install the dependencies
  3. Run gulp to build the app
  4. Start Sync Gateway locally with the configuration file in the root of this repo. Opening http://localhost:4984/todos/ in your browser should show information about the the todos database.

For most endpoints, the web app will send requests with credentials to Sync Gateway directly. The config file uses CORS config to make cross origin requests.

For signing up a new user, you can use the demo app server in main.go.

  1. Start the web server:
$ go run main.go
  1. Create a new user through the web app:
http://localhost:3000/signup

The app server will attempt to connect to the Sync Gateway admin REST API on http://localhost:4985. 3. Login with the credentials of the created user on:

http://localhost:3000/login

App server routes

todolite-web's People

Contributors

jamesnocentini avatar

Watchers

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