Skip to content

shishamchudal/ToDo

Repository files navigation

ToDo

A simple ToDo application backend with API.

Features

  • Lightweight API
  • Built with Laravel
  • Works with any frontend
  • Easy to Deploy & Contribute.

Installation

Install ToDo Application with Composer

  git clone https://github.com/shishamchudal/Todo.git
  cd ToDo
  composer install
  npm install && npm run dev
  laravel serve
  php artisan key:generate

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

DB_CONNECTION
DB_HOST
DB_PORT
DB_DATABASE
DB_USERNAME
DB_PASSWORD

API Reference

Get all Items

  GET /api/items

Create item

  POST /api/items
Parameter Type Description
name string Required. Name for the ToDo Item.

Get single item

  GET /api/items/{item}
Parameter Type Description
item numeric Required. Id of item to fetch

Update an item

  PATCH|PUT /api/items/{item}
Parameter Type Description
item numeric Required. Id of the item to be updated.

Delete an item

  DELETE /api/items/{item}
Parameter Type Description
item numeric Required. Id of the item to be deleted.

Running Tests

To run tests, run the following command

  php artisan test

Contributing

Contributions are always welcome!

See contributing.md for ways to get started.

Please adhere to this project's code of conduct.

License

MIT

Authors

🚀 About the Author

I am a full stack web developer based on the Capital of Nepal, Kathmandu. Currently learning VueJs.

About

Simple ToDo application API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published