Task-Manager is a web application for managing tasks using JavaScript for the frontend and Laravel for the backend.
- Add a task
- Edit a task
- Assign a task to a category
- Delete a task
- PHP >= 7.3
- Composer
- Clone this repository on your computer.
- Open a terminal and access the root directory of the application.
- Run :
cd backend/
compose install
This will install the PHP dependencies.
-
In the
backend
folder, copy the.env.example
file to.env
and configure the database settings.Replicate the fields:
Database name :
DB_DATABASE= (give the desired name for the database)
The name of the user to connect with:
DB_USERNAME=
The user's password :
DB_PASSWORD=
Note: Make sure your database is running on port 3306
. If this is not the case, please change the value of DB_PORT
.
- In the terminal run :
php artisan key:generate
php artisan migrate
Reply with yes
to allow Laravel to create a database with the name you specified during configuration.
This will create the databases required for the application to function correctly.
In the same terminal, run:
php artisan serve --port=8001
This will launch the server to manage the API. The server will run on port 8001 to avoid errors if your localhost is running on port 80.
In a new terminal, go to the root of the project, and run the command :
php -S localhost:8080 -t frontend/
Go to the URL displayed in the terminal to access the application.
You can now use TaskManager.