Skip to content

Instantly share code, notes, and snippets.

View RajatJain4061's full-sized avatar
🎯
Focusing

Rajat Jain RajatJain4061

🎯
Focusing
  • Jaipur - RJ (India)
View GitHub Profile

Mastodon Docker Setup

Setting up

Clone Mastodon's repository.

# Clone mastodon to ~/live directory
git clone https://github.com/tootsuite/mastodon.git live
# Change directory to ~/live

cd ~/live

@RajatJain4061
RajatJain4061 / _ticket-control.js
Created May 13, 2018 13:58 — forked from dmeents/_ticket-control.js
How to create a React.js ticketing system using Redux-Form and a MongoDB
//server/controllers/_ticket-control.js
'use strict';
const Tickets = require('../models/tickets');
//===================
// Create Tickets Route
//===================
exports.createTicket = function(req, res, next) {
<html>
<head>
<title>API Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
var accessToken = "<your agent's client access token>";
var baseUrl = "https://api.api.ai/v1/";
var webpack = require("webpack");
module.exports = {
entry: {
"react-reading-time": [
"webpack-dev-server/client?http://localhost:8881/",
"webpack/hot/only-dev-server",
"./example/react-reading-time.jsx"
] },
output: {
path: __dirname,