Merge pull request #107 from lalop/redis
add redis to docker-compose.yml
This commit is contained in:
commit
c5da47bb3a
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
BIN
design/screenshots/analytics.png
Normal file
BIN
design/screenshots/analytics.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 156 KiB |
BIN
design/screenshots/tellform_rating.png
Normal file
BIN
design/screenshots/tellform_rating.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 179 KiB |
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue