Skip to content

Instantly share code, notes, and snippets.

View bretanac93's full-sized avatar
:octocat:
Sup?

Cesar Bretana bretanac93

:octocat:
Sup?
View GitHub Profile
<template>
<section class="container">
<a href="https://github.com/login/oauth/authorize?scope=user:email&client_id=87d59a5fead575683be3">Login with Github</a>
</section>
</template>
<script>
export default {
components: {
@bretanac93
bretanac93 / server.js
Last active September 13, 2018 21:23
require('dotenv').config(); // Loads the environment variables from .env files (comes really handy)
const express = require('express');
const cors = require('cors'); // Middleware for allowing requests from different origins
const bodyParser = require('body-parser');
const axios = require('axios'); // HTTP Client
const app = express();
app.use(cors());
app.use(bodyParser.urlencoded({extended: false}));
@bretanac93
bretanac93 / app.nginx.conf
Created November 28, 2017 23:21
Nginx configuration file for PHP Applications
server {
index index.php;
server_name bretanart.com;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
root /code/public;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
@bretanac93
bretanac93 / docker-compose.yml
Last active November 28, 2017 23:32
Docker compose file for Deploying PHP Applications
version: '3'
services:
php:
image: php:fpm
volumes:
- ./code:/code
web:
image: nginx
ports:
- "8080:80"