Coder Social home page Coder Social logo

demo_todo's Introduction

Requirements

  • I can have my todo list displayed.
  • I can manipulate my list (add/remove/modify entries).
  • Assign priorities and due dates to the entries.
  • I can sort my entry lists using due date and priority.
  • I can mark an entry as completed.
  • Minimal UI/UX design is needed.
  • I need every client operation done using JavaScript, reloading the page is not an option.
  • Write a RESTful API which will allow a third-party application to trigger actions on your app (same actions available on the webpage).
  • You need to be able to pass credentials to both the webpage and the API.
  • As complementary to the last item, one should be able to create users in the system via an interface, probably a signup/register screen.

Implementation

The project is powered by AngularJS on the front-end, and Laravel 4 & MySQL on the back-end. The front- & back-ends are completely decoupled and interact solely through the API.

The AngularJS front-end is served from the site.com/ domain root, while the back-end is served from site.com/ws/ (web service).

Setup

Import the database, and configure the Laravel application as you would normally:

  • ensure app/storage is writable by your web server
  • update bootstrap/start.php to detect your environment
  • update app/config/app.php and app/config/database.php as necessary
  • ensure public/.htaccess contains RewriteBase /ws after RewriteEngine On

Then configure the vhost with:

<VirtualHost *:80>
  DocumentRoot /todo/app/frontend
  ServerName demo.todo
  DirectoryIndex index.html index.php
  
  <Directory /todo/app/frontend>
    Options FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
    RewriteEngine on
  </Directory>

  alias /ws "/todo/app/laravel/public"
  <Directory "/todo/app/laravel/public">
    Options FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
    RewriteEngine on
  </Directory>
</VirtualHost>

In the above vhost configuration:

  • ensure DocumentRoot, both Directory directives and the alias all have proper, absolute paths
  • ensure the alias (ie. /ws) matches the RewriteBase in Laravel's public/.htaccess

Finally, update your system's hosts file to serve the domain specified in ServerName.

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.