In this Laravel application, users can utilize APIs to create tasks accompanied by multiple notes, each of which can contain multiple attachments.
This is a API application made on Laravel
Follow these steps to install the project locally:
- PHP >= 8.1
- Composer
- MySQL or any other compatible database
git clone https://github.com/der-pun/task-and-notes.git
composer install
- Duplicate the .env.example file and rename it to .env.
- Update the .env file with your local environment settings:
- Set DB_CONNECTION, DB_HOST, DB_PORT, DB_DATABASE, DB_USERNAME, and DB_PASSWORD for database configuration.
- Generate an application key by running:
php artisan key:generate
- Create a new database in your MySQL server.
- Run the database migrations to create tables and seed the database with sample data:
php artisan migrate
php artisan db:seed
php artisan passport:install
Email = [email protected] Password = securePassword123
We use Laravel Passport to generate tokens to authenticate API requests.
- Login API is used to generate the token
- The generated token can be used as "bearer token" for subsequent API requests
- Each token expires after 1 day
Postman Link - https://documenter.getpostman.com/view/32892332/2sA2xfZDqi