Skip to content

Crawford30/laravel.api.taskmanagement

Repository files navigation

TASK MANAGEMENT REST API

Instructions:

1. Clone the Repository

-> Clone the repository from https://github.com/Crawford30/laravel.api.taskmanagement.git into the .htdocs folder of your Server.

2. Install Server Software

-> Make sure you have XAMPP or WAMP installed for Windows, MAMP or XAMPP for Mac, or LAMP for Linux.

3. Install Composer Dependencies

-> Run composer install in the project directory via the command line to install composer first.

4. Move PAI Application to Root

-> The "API Application" folder should be placed in the root directory (inside .htdocs for XAMPP or WAMP).

5. Create Database

-> Create a database of your choice (e.g., projectCodeDB).

6. Copy Environment File

-> Copy .env.example to .env. by running cp .env.example .env

7. Update Database Configuration

-> Open .env and update the database name to the one you created.

8. Navigate to Project Directory

-> Open a terminal or command prompt and navigate to the project directory.

9. Ensure Server is Running

-> Make sure the server is running (XAMPP, WAMP, or any server environment you are using).

10. Generate Application Key

-> Run php artisan key:generate to generate the application key.

11. Create Database Tables

-> Run php artisan migrate to create the necessary database tables.

12. Seed Database (Very Important Step)

-> Run php artisan db:seed to seed the databases.

13. Clear Configuration (if necessary)

-> php artisan config:clear
-> php artisan config:cache

14. Install Passport

-> php artisan passport:install

15. Start Development Server

-> Run php artisan serve to start the development server.

16. Copy Base URL

-> Copy the URL provided by the development server and use it as the base URL in the .env (afte copying .env.example from the front app) located in Project Root Folder). For my case it was VITE_API_URL=http://127.0.0.1:8000

17. User Account

-> I created a seeded account with these login credentials;
Email : [email protected]
Password : projectcode

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published