Skip to content

Instantly share code, notes, and snippets.

View SreejithEzhakkad's full-sized avatar
🎯
Focusing

Sreejith B SreejithEzhakkad

🎯
Focusing
View GitHub Profile
@SreejithEzhakkad
SreejithEzhakkad / index.html
Created September 14, 2018 09:14
HTML Template
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<title>Hello, world!</title>
</head>
@SreejithEzhakkad
SreejithEzhakkad / bitbucket-pipelines.yml
Created December 5, 2018 04:16
Bitbucket Pipeline file for Laravel
# This is a sample build configuration for PHP.
# Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: php:7.2-fpm
pipelines:
default:
- step:
caches:
@SreejithEzhakkad
SreejithEzhakkad / LoginTest.php
Last active December 5, 2018 14:24
Login Test cases for a Basic Laravel App
<?php
namespace Tests\Feature;
use App\User;
use Tests\TestCase;
use Illuminate\Foundation\Testing\WithFaker;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
@SreejithEzhakkad
SreejithEzhakkad / install-composer.sh
Created December 5, 2018 14:56
Composer installer file
#!/bin/bash
COMPOSER_VERSION=${COMPOSER_VERSION:-1.4.2}
curl -s -f -L -o /tmp/installer.php https://raw.githubusercontent.com/composer/getcomposer.org/da290238de6d63faace0343efbdd5aa9354332c5/web/installer \
&& php -r " \
\$signature = '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410'; \
\$hash = hash('SHA384', file_get_contents('/tmp/installer.php')); \
if (!hash_equals(\$signature, \$hash)) { \
unlink('/tmp/installer.php'); \
@SreejithEzhakkad
SreejithEzhakkad / .env.pipelines
Created December 5, 2018 15:38
Pipeline environment file for the sample Laravel Bitbucket Pipeline
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:fkFK0WfZ8wvBtlvOU7a2RVX+BYZ8RpWV7xF+S6GKygE=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
@SreejithEzhakkad
SreejithEzhakkad / docker-compose.yml
Last active July 14, 2019 13:59
Docker compose file for Laravel app with NGINX & MySQL without adding the configuration for persisting of data.
version: '3'
services:
#PHP Service
app:
build:
context: .
dockerfile: Dockerfile
image: php:7.3-fpm
container_name: app
@SreejithEzhakkad
SreejithEzhakkad / docker-compose.yml
Created July 8, 2019 16:50
Docker compose file for Laravel app with NGINX & MySQL
version: '3'
services:
#PHP Service
app:
build:
context: .
dockerfile: Dockerfile
image: digitalocean.com/php
container_name: app
@SreejithEzhakkad
SreejithEzhakkad / Dockerfile
Last active December 4, 2019 00:37
Dockerfile for Laravel app with NGIX & MySQL
FROM php:7.3-fpm
# Copy composer.lock and composer.json
COPY composer.lock composer.json /var/www/
# Set working directory
WORKDIR /var/www
# Install dependencies
RUN apt-get update && apt-get install -y \