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"
|
- "5.0.0"
|
||||||
- "4.0.0"
|
- "4.0.0"
|
||||||
env:
|
env:
|
||||||
- NODE_ENV=travis
|
- NODE_ENV=travis TRAVIS=travis CXX=g++-4.8
|
||||||
services:
|
services:
|
||||||
- mongodb
|
- mongodb
|
||||||
|
- redis
|
||||||
addons:
|
addons:
|
||||||
code_climate:
|
code_climate:
|
||||||
repo_token: 6c3a1b81a09b2338d6f30913c1bcad115026689752cbb499a0a25061cda6fbcf
|
repo_token: 6c3a1b81a09b2338d6f30913c1bcad115026689752cbb499a0a25061cda6fbcf
|
||||||
|
apt:
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
packages:
|
||||||
|
- gcc-4.8
|
||||||
|
- g++-4.8
|
||||||
after_script:
|
after_script:
|
||||||
- grunt coverage
|
- 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
|
TellForm is an *opensource alternative to TypeForm* built ontop of nodejs that can create stunning forms from PDFs or from scratch
|
||||||
|
|
||||||
##Demo Forms
|
##Demo Forms
|
||||||
[Job Application Example](https://stage.tellform.com/#!/forms/571a76b856d64f9e4ca73ca1)
|
[See examples here](https://tellform.com/examples)
|
||||||
|
|
||||||
[Contact Form Example](https://stage.tellform.com/#!/forms/57196d592601ed12074eecc0)
|
|
||||||
|
|
||||||
[Patient Registration Example](https://stage.tellform.com/#!/forms/573f8329d18419854559c29c)
|
|
||||||
|
|
||||||
##Screenshots
|
##Screenshots
|
||||||
![screenshot](design/screenshots/tellform_screenshot1.png)
|
![screenshot](design/screenshots/tellform_screenshot1.png)
|
||||||
|
![screenshot](design/screenshots/analytics.png)
|
||||||
|
![screenshot](design/screenshots/tellform_rating.png)
|
||||||
|
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
|
@ -124,7 +124,8 @@ exports.signup = function(req, res) {
|
||||||
|
|
||||||
// new user created
|
// new user created
|
||||||
if (newTempUser) {
|
if (newTempUser) {
|
||||||
nev.registerTempUser(newTempUser, function (err) {
|
var URL = newTempUser[nev.options.URLFieldName];
|
||||||
|
nev.sendVerificationEmail(user.email, URL, function (err, info) {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log('Error: ');
|
console.log('Error: ');
|
||||||
console.log(err);
|
console.log(err);
|
||||||
|
|
|
@ -12,7 +12,7 @@ module.exports = function (app, db) {
|
||||||
|
|
||||||
var io = socketio(config.socketPort, { transports: ['websocket', 'polling'] });
|
var io = socketio(config.socketPort, { transports: ['websocket', 'polling'] });
|
||||||
var redis = require('socket.io-redis');
|
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
|
// Add an event listener to the 'connection' event
|
||||||
io.on('connection', function (socket) {
|
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"
|
- "27017:27017"
|
||||||
volumes:
|
volumes:
|
||||||
- mongo-data-wt:/data/db
|
- mongo-data-wt:/data/db
|
||||||
|
redis:
|
||||||
|
image: redis
|
||||||
|
|
||||||
web:
|
web:
|
||||||
build: .
|
build: .
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -17,8 +20,10 @@ services:
|
||||||
- "35729:35729"
|
- "35729:35729"
|
||||||
links:
|
links:
|
||||||
- db
|
- db
|
||||||
|
- redis
|
||||||
environment:
|
environment:
|
||||||
DB_HOST: db
|
DB_HOST: db
|
||||||
|
REDIS_HOST: redis
|
||||||
volumes:
|
volumes:
|
||||||
mongo-data-wt:
|
mongo-data-wt:
|
||||||
driver: local
|
driver: local
|
||||||
|
|
|
@ -19,12 +19,13 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "grunt",
|
"start": "grunt",
|
||||||
"test": "grunt test && grunt coveralls",
|
"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": {
|
"dependencies": {
|
||||||
"async": "^1.4.2",
|
"async": "^1.4.2",
|
||||||
"aws-sdk": "^2.3.9",
|
"aws-sdk": "^2.3.9",
|
||||||
|
"bcrypt": "^0.8.7",
|
||||||
"body-parser": "~1.14.1",
|
"body-parser": "~1.14.1",
|
||||||
"bower": "~1.6.5",
|
"bower": "~1.6.5",
|
||||||
"chalk": "^1.1.3",
|
"chalk": "^1.1.3",
|
||||||
|
|
|
@ -214,6 +214,7 @@
|
||||||
Field Analytics
|
Field Analytics
|
||||||
</div>
|
</div>
|
||||||
<div class="row col-xs-12 field-title-row">
|
<div class="row col-xs-12 field-title-row">
|
||||||
|
|
||||||
<div class="col-xs-3">
|
<div class="col-xs-3">
|
||||||
<strong>{{ 'FIELD_TITLE' | translate }}</strong>
|
<strong>{{ 'FIELD_TITLE' | translate }}</strong>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue