Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vamuigua/d92d2dc54af52b17703e908ebeb72e84 to your computer and use it in GitHub Desktop.
Save vamuigua/d92d2dc54af52b17703e908ebeb72e84 to your computer and use it in GitHub Desktop.
Configuration for Laravel Project on local machine

Configuration for Laravel Project on local machine

  1. Clone project
git clone <project-url>
  1. Move into project
cd <app_name>
  1. Install Dependencies
composer install
  1. Directory Permissions
chmod -R 755 <app_name>
chmod -R 777 storage bootstrap/cache
  1. Install npm packages
npm install
  1. Compile assets
npm run dev
  1. Create .env file
touch .env
  1. Copy .env Laravel Configuration
cp .env.example .env
  1. Add necesary configurations to the .env file
e.g Database connection, Queue connection, Log Channel, Mail Mailer etc.
  1. Generate Key
php artisan key:generate
  1. Migrate Database
php artisan migrate
  1. Start the app by running the server
php artisan serve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment