Skip to content

Instantly share code, notes, and snippets.

View AndresSepar's full-sized avatar
🤖
Coding mode!

Andres Separ AndresSepar

🤖
Coding mode!
View GitHub Profile
@AndresSepar
AndresSepar / app.js
Created May 5, 2018 17:59 — forked from DarrylD/app.js
express.js, simple dynamic route loading
//all of your express config stuff
var express = require('express')
, app = express()
//load api routes (app of the files from /api)
require('./api').boot(app)
//rest of your expressjs stuff
@AndresSepar
AndresSepar / default.conf
Created May 3, 2018 19:13
NGiNX Configuration for Vue-Router in HTML5 Mode
server {
listen 80 default_server;
listen [::]:80 default_server;
root /your/root/path;
index index.html;
server_name you.server.com;