Kajaia / laravel-notes-api

API for notes, functionality from Google Keep

Home Page:https://keep.jrwebdeveloper.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Keep Clone

About

This is a basic Google Keep Clone made with Bootstrap, React, Laravel and MySQL. Stack is big but we wanted to create something really functional.

Installation

  1. Clone this repository git clone git@github.com:Kajaia/google-keep-clone.git
  2. Go to downloaded folder cd google-keep-clone and open with your text editor Ex: code .
  3. Change environment file - in windows: copy .env.example .env, in linux: cp .env.example .env
  4. Install all your dependencies by running composer install
  5. Generate key for your application php artisan key:generate
  6. Run migration php artisan migrate
  7. Seed dummy data php artisan db:seed
  8. Go live by running php artisan serve and visit 127.0.0.1:8000

For node modules

  1. Run command npm install
  2. For development environment run npm run dev, for production npm run prod

API Docs

Labels (Note categories)

  • Get all labels by visiting 127.0.0.1:8000/api/labels
  • Get specific label by visiting 127.0.0.1:8000/api/labels/{id}
  • Add new label with POST method 127.0.0.1:8000/api/labels
  • Edit specific label with PUT method 127.0.0.1:8000/api/labels/{id}
  • Delete specific label with DELETE method 127.0.0.1:8000/api/labels/{id}

Notes

  • Get all notes by visiting 127.0.0.1:8000/api/notes
  • Get specific note by visiting 127.0.0.1:8000/api/notes/{id}
  • Add new note with POST method 127.0.0.1:8000/api/notes
  • Edit specific note with PUT method 127.0.0.1:8000/api/notes/{id}
  • Delete specific note with DELETE method 127.0.0.1:8000/api/notes/{id}
  • Get all deleted notes 127.0.0.1:8000/api/trash

Search Notes

  • GET request on 127.0.0.1:8000/api/labels using search param

Restore deleted note

  • You can do this with POST method 127.0.0.1:8000/api/notes/{id}/restore

About

API for notes, functionality from Google Keep

https://keep.jrwebdeveloper.com/


Languages

Language:PHP 98.5%Language:Shell 0.9%Language:Blade 0.5%