📝 This project is similar to Google Drive. In File Maganer, you can upload, download, delete files and even also share with another user. File Manager have login/register, trash, my files, shared with me and shared by me pages. In this project was used nested sets for better archives management.
- Docker
- Docker Compose
- Git
- Clone this repository
git clone https://github.com/WillianMafra/File-Manager.git
- Access the project directory.
cd File-Manager
- Install Composer dependencies.
docker run --rm \
-u "$(id -u):$(id -g)" \
-v "$(pwd):/var/www/html" \
-w /var/www/html \
laravelsail/php83-composer:latest \
composer install --ignore-platform-reqs
- Create an alias to simplify using Sail.
alias sail='[ -f sail ] && sh sail || sh vendor/bin/sail'
- Rename the .env copy file to .env.
mv '.env.example' .env
- Initialize the Docker environment using Sail.
sail up -d
- Access the application container.
sail shell
- Generate an application key.
php artisan key:generate
- Run database migrations.
php artisan migrate
- Create the link to storage files.
php artisan storage:link
- Run npm install to install Node.js dependencies and npm run dev to compile assets.
npm install
npm run dev
After following the steps above, the File manager app should be up and running and accessible through the web browser at the following address:
http://localhost/register
After you made your registration, an email with confirmation was sent to
http://localhost:8025
To stop the Sail environment, exit the application shell by typing
exit
and then execute the following command in the project directory:
sail down