diff --git a/README.md b/README.md index c31cc7e..f560b83 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,10 @@ ![](https://lh4.googleusercontent.com/-PVw-ZUM9vV8/UuWeH51os0I/AAAAAAAAD6M/0Ikg7viJftQ/w1286-h566-no/hackathon-starter-logo.jpg) -Hackathon Starter +Chatform.ai ======================= -[![Dependency Status](https://david-dm.org/sahat/hackathon-starter/status.svg?style=flat)](https://david-dm.org/sahat/hackathon-starter) [![Build Status](https://travis-ci.org/sahat/hackathon-starter.svg?branch=master)](https://travis-ci.org/sahat/hackathon-starter) [![Join the chat at https://gitter.im/sahat/hackathon-starter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/sahat/hackathon-starter?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Thinkful Pair on Node](https://tf-assets-staging.s3.amazonaws.com/badges/thinkful_repo_badge.svg)](http://start.thinkful.com/node/) +**Live Demo**: http://chatform.ai -**Live Demo**: http://hackathonstarter-sahat.rhcloud.com - -Jump to [What's new in 4.3.0?](#changelog) - -:bulb: Looking for ES5 code? [Click here](https://github.com/sahat/hackathon-starter/tree/es5). +[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy) A boilerplate for **Node.js** web applications. @@ -23,32 +19,6 @@ I also tried to make it as **generic** and **reusable** as possible to cover mos without being too specific. In the worst case you can use this as a learning guide for your projects, if for example you are only interested in **Sign in with Google** authentication and nothing else. -### Testimonials - -> [**“Nice! That README alone is already gold!”**](https://www.producthunt.com/tech/hackathon-starter#comment-224732)
-> — Adrian Le Bas - -> [**“Awesome. Simply awesome.”**](https://www.producthunt.com/tech/hackathon-starter#comment-224966)
-> — Steven Rueter - -> [**“I'm using it for a year now and many projects, it's an awesome boilerplate and the project is well maintained!”**](https://www.producthunt.com/tech/hackathon-starter#comment-228610)
-> — Kevin Granger - -> **“Small world with Sahat's project. We were using his hackathon starter for our hackathon this past weekend and got some prizes. Really handy repo!”**
-> — Interview candidate for one of the companies I used to work with. - -

Modern Theme

- -![](https://lh6.googleusercontent.com/-KQTmCFNK6MM/U7OZpznjDuI/AAAAAAAAERc/h3jR27Uy1lE/w1366-h1006-no/Screenshot+2014-07-02+01.32.22.png) - -

Flatly Bootstrap Theme

- -![](https://lh5.googleusercontent.com/-oJ-7bSYisRY/U1a-WhK_LoI/AAAAAAAAECM/a04fVYgefzw/w1474-h1098-no/Screen+Shot+2014-04-22+at+3.08.33+PM.png) - -

API Examples

- -![](https://lh5.googleusercontent.com/-BJD2wK8CvC8/VLodBsyL-NI/AAAAAAAAEx0/SafE6o_qq_I/w1818-h1186-no/Screenshot%2B2015-01-17%2B00.25.49.png) - Table of Contents ----------------- @@ -145,7 +115,7 @@ restart the server each time you make a small change in code. To install, run Yarn vs NPM ----------- -Yarn is a new JavaScript package manager built by Facebook, Google, Exponent and Tilde. Yarn is not an attempt to replace `npm`, +Yarn is a new JavaScript package manager built by Facebook, Google, Exponent and Tilde. Yarn is not an attempt to replace `npm`, it's simply an alternative CLI client for fetching modules from the npm registry but it does have some unique benefits over using `npm`, most noticeably speed and consistency (via a lock file which ensures that only specific versions of dependencies are installed). Hackathon Starter includes a `yarn.lock` file by default and as project dependencies are updated, this file will be updated to reflect those changes. @@ -1106,7 +1076,7 @@ var YYYY = now.getFullYear(); if (DD < 10) { DD = '0' + DD; -} +} if (MM < 10) { MM = '0' + MM; @@ -1377,7 +1347,7 @@ Changelog - Flash an error message when updating email to that which is already taken - Removing an email address during profile update is no longer possible - PayPal API example now uses *return_url* and *cancel_url* from `.env` -- Added client-side `required=true` attributes to input fields +- Added client-side `required=true` attributes to input fields - Fixed broken `show()` function in the GitHub API example - Fixed YQL query in the Yahoo Weather API example - Fixed *Can't set headers after they are sent* error in Stripe API example diff --git a/app.json b/app.json new file mode 100644 index 0000000..fc09f8f --- /dev/null +++ b/app.json @@ -0,0 +1,23 @@ +{ + "name": "chatform", + "description": "Create forms and surveys that are answered through your favourite messaging app, over Smooch", + "website": "http://chatform.ai", + "repository": "https://github.com/gozman/chatform", + "keywords": [ + "Smooch", + "messaging", + "bots", + "surveys", + "forms" + ], + "addons": [ + "mongolab:sandbox", + "heroku-redis:hobby-dev" + ], + "env": { + "CHATFORM_BASE_URL": { + "description": "The URL to your deployed instance of chatform. For example: https://app-name.herokuapp.com" + } + }, + "generator": "https://www.expeditedssl.com/heroku-button-maker" +} diff --git a/views/home.pug b/views/home.pug index 7b6d7ce..c964384 100644 --- a/views/home.pug +++ b/views/home.pug @@ -79,9 +79,8 @@ html .nav ul li - a(href='https://smooch.io') about smooch.io - li - a(href='/login') sign in + if !user + a(href='/login') sign in ul section.abstract .main-wrapper @@ -90,7 +89,7 @@ html .right .title // h1>We bring your survey to lifeHow
it
workssmooch.io messaging platform. .row .icon img(src='/icon_open_source.svg', alt='chatform-illustration') .text p - | Brillant solutions are even better when they are - a(href='https://smooch.io/', target='_blanck') Open Source - | , we can't wait to see what you will do with it. + | Chatform is entirely open source, check it out on github, modify it and deploy it to your own server .btn a(href='') Try a survey footer .sponsor - p Powered by - a(href='https://smooch.io/', target='_blanck') - img(src='/smooch_logo.svg', alt="smooch's logo") + p Built by Mike Gozzo and Lucie Le Touze at a Smooch.io hackathon in January 2017. diff --git a/views/partials/header.pug b/views/partials/header.pug index 87144d8..2c4e9d3 100644 --- a/views/partials/header.pug +++ b/views/partials/header.pug @@ -2,10 +2,8 @@ ul.nav.navbar-nav li.icon-logo - li(class=(title == 'Home') ? 'active' : undefined) - a(href='/forms') Forms if user - li - a(href='/status') Status + li(class=(title == 'Home') ? 'active' : undefined) + a(href='/forms') Forms li a(href="/logout") Log out