- Docker
- Npm
-
Clone the repository:
git clone https://github.com/truenormis/spa-test.git -
Copy
.env.exampleto.envand set your Telegram Token and User ID. -
Set privileges:
chmod -R 777 ./ -
If you encounter any errors, create the necessary folder:
mkdir storage/app/public/images -
Build and run Docker:
docker-compose build docker-compose up -d -
Access the Docker bash:
docker exec -it spa-app bash -
Install requirements within the container:
composer install -
Generate a key:
php artisan key:generate -
Run Vite:
npm install npm run devor
npm install npm run build -
Set up the database:
php artisan migrate
Now your SPA-Test environment should be set up and ready to use.