added some stuff
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
# check that $1 folder does not exit
|
||||
[ -d "$1" ] && echo "Folder $1 already exists" && exit 1
|
||||
|
||||
echo "*** Starting New Laravel Project ***"
|
||||
echo "*** Starting New Slim Project ***"
|
||||
|
||||
################################################################################
|
||||
# Check composer installed
|
||||
@@ -16,34 +16,46 @@ if [[ $COMPOSER -ne 0 ]]; then
|
||||
echo 'Checkout how to Install Composer here: https://www.nickyeoman.com/blog/php/install-composer-on-ubuntu/'
|
||||
echo 'Once installed, try running this script again'
|
||||
exit 1
|
||||
else
|
||||
composer create-project laravel/laravel $1
|
||||
fi
|
||||
|
||||
mkdir $1
|
||||
cd $1
|
||||
|
||||
# Not running rootless, in development mode:
|
||||
chmod -R 777 storage/
|
||||
|
||||
################################################################################
|
||||
# Create directories
|
||||
################################################################################
|
||||
|
||||
mkdir sass
|
||||
mkdir sass templates
|
||||
mkdir -p public/css
|
||||
# TODO: public index.php file
|
||||
|
||||
################################################################################
|
||||
# Composer
|
||||
################################################################################
|
||||
|
||||
composer require slim/slim:"4.*"
|
||||
composer require slim/psr7
|
||||
composer require slim/twig-view
|
||||
composer require nickyeoman/nytwig
|
||||
composer require nickyeoman/sassLibrary
|
||||
|
||||
################################################################################
|
||||
# Docker
|
||||
################################################################################
|
||||
echo "Creating a docker-compose"
|
||||
wget https://raw.githubusercontent.com/nickyeoman/phpframework/main/docker/docker-compose.yml
|
||||
|
||||
echo "Creating a Dockerfile"
|
||||
wget https://raw.githubusercontent.com/nickyeoman/phpframework/main/docker/Dockerfile
|
||||
|
||||
wget -O .env https://raw.githubusercontent.com/nickyeoman/phpframework/main/env.sample
|
||||
|
||||
################################################################################
|
||||
# Git
|
||||
################################################################################
|
||||
|
||||
git init
|
||||
echo '.sass-cache/' >> .gitignore
|
||||
#echo '.sass-cache/' >> .gitignore
|
||||
git add .
|
||||
git commit -m"First Commit, slim installed"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user