Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Rajat Jain RajatJain4061

🎯
Focusing
  • Jaipur - RJ (India)
View GitHub Profile
@RajatJain4061
RajatJain4061 / _ticket-control.js
Created May 13, 2018 — forked from dmeents/_ticket-control.js
How to create a React.js ticketing system using Redux-Form and a MongoDB
View _ticket-control.js
//server/controllers/_ticket-control.js
'use strict';
const Tickets = require('../models/tickets');
//===================
// Create Tickets Route
//===================
exports.createTicket = function(req, res, next) {
View gist:074ee97c6da1f26e37650ed2817da52d
<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/";
View custom-react-webpack-config.js
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,
You can’t perform that action at this time.