Todo application using Laravel lumen micro framework and AngularJS
- Create/Edit/Delete Todo
- Lumen Rest API
- AngularJS Form Validation
- AngularJS CSRF Protection
- Search Todos
- Sort Todos
- Complete Todos
Clone Repo
git clone https://github.com/DimitriMikadze/Lumen-Angular-Todo.git
Create Database
Cd project and run composer update and npm install
cd lumen-angular-todo
composer update
npm install
Add .env file to root directory.
Example:
APP_ENV=local
APP_DEBUG=true
APP_KEY=SomeSecret
DB_CONNECTION=mysql
DB_HOST=localhost
DB_DATABASE=todos
DB_USERNAME=databaseusername
DB_PASSWORD=databasepassword
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=database
Migrate todos table
php artisan migrate
Start Server
php artisan serve
grunt-contrib-concat
grunt-contrib-uglify
grunt-contrib-watch
grunt
output will look like this
Running "concat:dist" (concat) task
File public/js/app.js created.
Running "uglify:my_target" (uglify) task
>> 1 file created.
Running "watch" task
Waiting...
lumen rest api is located in routes.php file, app/Http/routes.php
you can find angular files in, resources/js
Angular concatenated file in public/js/app. Angular concatenated and minified version in public/js/app.min.js
contributions are more than welcome!
See license.txt