Download and install Solr from http://lucene.apache.org/solr/. You can access Solr admin from your browser: http://localhost:8983/solr/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--<a href="./FreightCost/upload"><h3>UPLOAD FILE<h3>--> | |
<head> | |
<?php echo $this->Html->css('ag-grid.min'); ?> | |
<?php echo $this->Html->css('ag-grid-theme-blue.min'); ?> | |
<?php echo $this->Html->css('odometer-theme-car'); ?> | |
<style> | |
/* Paste this css to your style sheet file or under head tag */ | |
/* This only works with JavaScript, | |
if it's not present, don't show loader */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Lets say solr is located at /usr/local/solr-5.5.0 . | |
1. bin/solr start | |
2. bin/solr create -c test | |
3. location of new core is here /usr/local/solr-5.5.0/server/solr/test | |
4. location of solrconfig is here /usr/local/solr-5.5.0/server/solr/test/solrconfig.xml | |
5. Open solrconfig.xml - | |
You will find this | |
<schemaFactory class="ManagedIndexSchemaFactory"> | |
<bool name="mutable">true</bool> | |
<str name="managedSchemaResourceName">managed-schema</str> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In your model simply add a field for the pdf - | |
Admission.add({ | |
name: { type: String, required: true }, | |
state: { type: Types.Select, options: 'draft, published, archived', default: 'published', index: true }, | |
author: { type: Types.Relationship, ref: 'User', index: true }, | |
publishedDate: { type: Types.Date, index: true }, | |
pdf: { type: Types.S3File }, | |
content: { | |
brief: { type: Types.Html, wysiwyg: true, height: 150 }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SEND OTP | |
// ============================================== | |
router.post('/sendOTP',function(req, res){ | |
console.log('body: ' + JSON.stringify(req.body)); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(){ | |
var userServiceURL; | |
var blogServiceURL; | |
var contentServiceURL; | |
switch(process.env.NODE_ENV || 'development'){// other option is export NODE_ENV=development in console | |
case 'development': | |
userServiceURL = "http://localhost:9000/userService/"; | |
break; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<li><a id='dialog_trigger_operations' data="/csportalNew/operations_view/<?php echo $order->order_id ?>" data-toggle="tooltipOperationsView" >View and edit Operation view</a> </li> | |
<div id = 'dialog_operations'></div> | |
<script> | |
$(document).ready(function(){ | |
$("#dialog_operations").dialog({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@POST | |
@Path("sendappnotification") | |
@Consumes(MediaType.APPLICATION_FORM_URLENCODED) | |
public static String sendSMS(@FormParam("order_id") String order_id, | |
@FormParam("template") String template, | |
@FormParam("appNotifData") String notif_json) { | |
} | |
reference - http://stackoverflow.com/questions/27957649/resteasy-formparam-returns-always-null | |
reference - http://postimg.org/image/iwbrdbilz/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.Install Bower | |
npm install -g bower | |
2.Add a bower.json file parallel to app.js/server.js file with following contents - | |
{ | |
"name": "your-project", | |
"dependencies": { | |
"sir-trevor-js": "0.4.3" | |
}, | |
"resolutions": { | |
"jquery": "~1.9.1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=="utf-8"> | |
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/dropzone/4.2.0/min/dropzone.min.js"></script> <!-- js for the add files area /-->i | |
<script> | |
var Dropzone = require("enyo-dropzone"); | |
Dropzone.autoDiscover = false; |