Skip to content

mayankgupta022/backbone-flask-todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

backbone-flask-todo

A simple CRUD application for Todolist created in backbonejs and python flask

Installation

By default, localStorage of browser is used for persistence. In case persistence on server is required, comment out line

document.mode = "local";
from
client/modules/common/models/model.js
and continue with following steps;

  1. pip install flask
  2. pip install flask-mysql
  3. pip install flask-cors
  4. Create a database in mysql
  5. Execute notes.sql in notes database
  6. Modify server.py and change following configuration based on your requirements
     app.config['MYSQL_DATABASE_USER'] = 'user'
     app.config['MYSQL_DATABASE_PASSWORD'] = 'pass'
     app.config['MYSQL_DATABASE_DB'] = 'todo'
     app.config['MYSQL_DATABASE_HOST'] = 'localhost'
     

Run Server

Go inside server directory.

python server.py

Server is now running http://localhsot:5000

Specifications

  1. GET http://localhost:5000/todo - get all todo
  2. POST http://localhost:5000/todo - create a todo
  3. PUT http://localhost:5000/todo/:id - update a todo with given id
  4. DELETE http://localhost:5000/todo/:id - delete a todo with given id

About

A simple CRUD application for Todolist created in backbonejs and python flask

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published