Coder Social home page Coder Social logo

mytodo's Introduction

Simple Todo List Project With Laravel 10/php8.2-fpm/apache/sqlite


GITHUB

To Clone Project

  1. git clone https://github.com/shincyls/mytodo.git

DOCKER

Using Docker to Run

  1. docker pull shincyls/mytodo:test5
  2. docker compose up OR
  3. Run with docker desktop
  4. Search "shincyls/mytodo:test5" and Pull/Download the Container
  5. Run containers with host port 8080:80

INSTRUCTION
  1. Browse "http://localhost:8080/api/login/google" in any Internet Browser to Sign-Up as app user
  2. Once selected your gmail, click sign-in and wait for callback response. Copy the value of "access_token", copy this value as for {YOUR_AUTH_TOKEN}
  3. Open Windows CMD / Linux Terminal
    1. To List All Todo Items
      curl -H "Authorization: Bearer {YOUR_AUTH_TOKEN}" http://localhost:8080/api/todos
    2. To Select a Todo Item by Id
      curl -H "Authorization: Bearer {YOUR_AUTH_TOKEN}" http://localhost:8080/api/todos/{id}
    3. To Add a Todo Item
      curl -H "Authorization: Bearer {YOUR_AUTH_TOKEN}" http://localhost:8080/api/todos/create -X POST -d "title={TASK_TITLE}&description={TASK_DESCRIPTION}&due_date={TASK_DUE_DATE}"

      {TASK_TITLE}? task title
      {TASK_DESCRIPTION}? task description
      {TASK_DUE_DATE}? date format in yyyy-mm-dd

    4. To Mark a Todo Item as Completed
      curl -H "Authorization: Bearer {YOUR_AUTH_TOKEN}" http://localhost:8080/api/todos/{id}/done -X PUT

      {id}? id of todo item, you can view it with command (i) (Refer to List All Todo Items)

    5. To Remove a Todo Item
      curl -H "Authorization: Bearer {YOUR_AUTH_TOKEN}" http://localhost:8080/api/todos/{id} -X DELETE

      {id}? id of todo item, you can view it with command (i) (Refer to List All Todo Items)

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.