This project is a task management application built with Directus, MySQL, Svelte, and Flowbite. It includes a backend configured with Directus for managing tasks and user authentication, and a frontend using Svelte and Flowbite for a responsive user interface.
Ensure you have the following installed:
Clone the Repository:
git clone https://github.com/pragzz1238/Task-Management-App-with-Svelte-Flowbite-Directus-and-MySQL.git
cd Task-Management-App-with-Svelte-Flowbite-Directus-and-MySQL
Navigate to the Backend Directory:
cd backend
Install Dependencies:
npm install
Create and Configure MySQL Database:
directus
in MySQL..env
file with your MySQL credentials:DB_CLIENT=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=directus
DB_USER=your_mysql_username
DB_PASSWORD=your_mysql_password
Run Directus Setup:
npx create-directus-project .
(or)
npx directus init
Start the Directus Server:
npx directus start
Configure Directus for Task Management:
Navigate to the Frontend Directory:
cd ../frontend
Install Dependencies:
npm install
Start the Frontend Server:
npm run dev
Start the Backend:
npx directus start
Start the Frontend:
npm run dev
Open the Application:
http://localhost:5173
in your web browser to access the frontend application.Test the API (optional):
POST http://localhost:8055/auth/login
endpoint to authenticate users.If you encounter any issues during setup or usage, please refer to the project documentation for detailed instructions and troubleshooting tips.