Merge pull request #107 from lalop/redis

add redis to docker-compose.yml
This commit is contained in:
David Baldwynn 2016-06-19 14:42:57 -07:00 committed by GitHub
commit c5da47bb3a
12 changed files with 23 additions and 10 deletions

View file

@ -4,11 +4,18 @@ node_js:
- "5.0.0"
- "4.0.0"
env:
- NODE_ENV=travis
- NODE_ENV=travis TRAVIS=travis CXX=g++-4.8
services:
- mongodb
- redis
addons:
code_climate:
repo_token: 6c3a1b81a09b2338d6f30913c1bcad115026689752cbb499a0a25061cda6fbcf
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
after_script:
- grunt coverage

View file

@ -13,14 +13,12 @@ Current stable release: v1.3.0
TellForm is an *opensource alternative to TypeForm* built ontop of nodejs that can create stunning forms from PDFs or from scratch
##Demo Forms
[Job Application Example](https://stage.tellform.com/#!/forms/571a76b856d64f9e4ca73ca1)
[Contact Form Example](https://stage.tellform.com/#!/forms/57196d592601ed12074eecc0)
[Patient Registration Example](https://stage.tellform.com/#!/forms/573f8329d18419854559c29c)
[See examples here](https://tellform.com/examples)
##Screenshots
![screenshot](design/screenshots/tellform_screenshot1.png)
![screenshot](design/screenshots/analytics.png)
![screenshot](design/screenshots/tellform_rating.png)
## Features

View file

@ -124,7 +124,8 @@ exports.signup = function(req, res) {
// new user created
if (newTempUser) {
nev.registerTempUser(newTempUser, function (err) {
var URL = newTempUser[nev.options.URLFieldName];
nev.sendVerificationEmail(user.email, URL, function (err, info) {
if (err) {
console.log('Error: ');
console.log(err);

View file

@ -12,7 +12,7 @@ module.exports = function (app, db) {
var io = socketio(config.socketPort, { transports: ['websocket', 'polling'] });
var redis = require('socket.io-redis');
io.adapter(redis({ host: '127.0.0.1', port: 6379 }));
io.adapter(redis(process.env.REDIS_HOST || { host: '127.0.0.1', port: 6379 }));
// Add an event listener to the 'connection' event
io.on('connection', function (socket) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 KiB

View file

@ -7,6 +7,9 @@ services:
- "27017:27017"
volumes:
- mongo-data-wt:/data/db
redis:
image: redis
web:
build: .
volumes:
@ -17,8 +20,10 @@ services:
- "35729:35729"
links:
- db
- redis
environment:
DB_HOST: db
REDIS_HOST: redis
volumes:
mongo-data-wt:
driver: local

View file

@ -19,12 +19,13 @@
"scripts": {
"start": "grunt",
"test": "grunt test && grunt coveralls",
"setup": "node scripts/setup.js;",
"postinstall": "bower install --config.interactive=false; grunt build;"
"postinstall": "bower install --config.interactive=false; grunt build;",
"init": "node scripts/setup.js"
},
"dependencies": {
"async": "^1.4.2",
"aws-sdk": "^2.3.9",
"bcrypt": "^0.8.7",
"body-parser": "~1.14.1",
"bower": "~1.6.5",
"chalk": "^1.1.3",

View file

@ -214,6 +214,7 @@
Field Analytics
</div>
<div class="row col-xs-12 field-title-row">
<div class="col-xs-3">
<strong>{{ 'FIELD_TITLE' | translate }}</strong>
</div>