redis-server --version
redis-cli --version
apt-get install build-essential
package main | |
import ( | |
"database/sql" | |
"gopkg.in/gorp.v1" | |
"log" | |
"strconv" | |
"github.com/gin-gonic/gin" | |
_ "github.com/go-sql-driver/mysql" |
package main | |
import ( | |
"github.com/gin-gonic/gin" | |
"github.com/jinzhu/gorm" | |
_ "github.com/mattn/go-sqlite3" | |
) | |
type Users struct { | |
Id int `gorm:"AUTO_INCREMENT" form:"id" json:"id"` |
# -*- coding: utf-8 -*- | |
import os | |
import time | |
import hashlib | |
from flask import Flask, render_template, redirect, url_for, request | |
from flask_uploads import UploadSet, configure_uploads, IMAGES, patch_request_class | |
from flask_wtf import FlaskForm | |
from flask_wtf.file import FileField, FileRequired, FileAllowed | |
from wtforms import SubmitField |
from flask import Flask | |
from flask.ext.sqlalchemy import SQLAlchemy | |
app = Flask(__name__) | |
db = SQLAlchemy(app) | |
class Author(db.Model): | |
id = db.Column(db.Integer, primary_key=True) | |
name = db.Column(db.Text) |
//Load express module with `require` directive | |
var express = require('express') | |
var app = express() | |
//Define request response in root URL (/) | |
app.get('/', function (req, res) { | |
res.send('Hello World!') | |
}) | |
//Launch listening server on port 8081 |