Skip to content

lucamozzz/recycle-endar

Repository files navigation

Recycle-endar

Simple app that helps you recycle.

Recycle-endar provides you with a minimal nice-looking UI that makes it a cinch to remember
when you need to get up and take out the trash. The right one.

A deploy of this application is available at the following address: https://recycle-endar.herokuapp.com

Schermata 2022-02-13 alle 14 54 40 Schermata 2022-02-13 alle 14 51 16

How to install

Download this repo on your machine and cd into it. Run php artisan serve to have it listening on localhost:8000.

Frontend

I provided this application with a ReactJS frontend. I think it looks cool!

Backend

This web application was created using Laravel 8.7. Laravel Mix and Laravel Sanctum packages are used in this project.

API Endpoints

The following endpoints are accessible without authentication:

  • POST /api/register
  • POST /api/login

When authenticated, you gain access to the following endpoints:

  • Use GET /api/pickups to get a recap of the weekly pickups
  • Use POST /api/pickups to create a new pickup
  • Use GET /api/pickups/{id} to get a single pickup
  • Use PUT /api/pickups/{id} to edit an existing pickup
  • Use DELETE /api/pickups/{id} to delete an existing pickup
  • Use GET /api/pickups/search/{weekday} to get pickups that occur on a specific weekday
  • Use POST /api/logout to logout

License

This project is licensed under the MIT license