diff --git a/init.js b/init.js new file mode 100644 index 0000000..9cad0ff --- /dev/null +++ b/init.js @@ -0,0 +1,10 @@ +//create toruf dir +//create the components dir +//create the objects dir +//create the templates dir +//if there is a site directory + //build asset dirs + //if the site directory contains html files + //reversebuildAll +//else build the site directory + //build asset dirs \ No newline at end of file diff --git a/lib/attributeList.js b/lib/attributeList.js new file mode 100644 index 0000000..7b59e1d --- /dev/null +++ b/lib/attributeList.js @@ -0,0 +1,842 @@ +module.exports = { + "accept":{ + "name":"accept", + "belongsTo":"", + "description":"Specifies whether the content of an element is editable or not" + }, + "accept-charset":{ + "name":"accept-charset", + "belongsTo":"
", + "description":"Specifies that audio/video controls should be displayed (such as a play/pause button etc)" + }, + "accesskey":{ + "name":"accesskey", + "belongsTo":"Global Attributes", + "description":"Specifies the coordinates of the area" + }, + "action":{ + "name":"action", + "belongsTo":"", + "description":"Specifies the URL of the resource to be used by the object" + }, + "align":{ + "name":"align", + "belongsTo":"Not supported in HTML 5.", + "description":"Used to store custom data private to the page or application" + }, + "alt":{ + "name":"alt", + "belongsTo":", , ", + "description":"Specifies the date and time" + }, + "async":{ + "name":"async", + "belongsTo":" + + + + + + + + + + + + + + \ No newline at end of file diff --git a/starter_template.html b/starter_template.html deleted file mode 100644 index daec584..0000000 --- a/starter_template.html +++ /dev/null @@ -1,327 +0,0 @@ - - - - - - - - - - - - Super Easy Forms - - - - - - - - - - - - - - - - - - - -
-
-
-

Header

-

A Free and open source tool that helps you create responsive HTML contact forms in an instant.

-
-
-
- - -
- -
- - -
-
-
-

Features

-
-
-
-
-
    -
  • 100% customizable html forms (No iframes)
  • -
  • Create an unlimited amount of forms
  • -
  • Store unlimited form submissions
  • -
  • Register an unlimited amount of emails.
  • -
  • Easily export submissions from the database
  • -
-
-
-
-
-

Have Any Questions?

- - - - - - - - -
- - made with - - - - -
-
-
-
-
-
- - -
-
-
-
-

Want to know more about Super Easy Forms?

-
-
-
- -
-
- -
-
- -
-
-
-
- - made with super easy forms -
-
-
- - -
-
-
-
-

How it Works

-

Super Easy Forms is a simple CLI built with node js. It helps you register your email with AWS SES, it automatically creates the necessary resources for you in AWS, and it outputs a Bootstrap HTML form that's already connected to your API, ready to copy paste into your website.

- Resources Created -
    -
  1. A Dynamodb table with your desired fields.
  2. -
  3. A lambda function that will send an email to your registered address and add the entry to the database.
  4. -
  5. A REST API endpoint for the lambda function with a POST method.
  6. -
- The Form -
    -
  1. Responsive bootsrap 4 layout
  2. -
  3. Automatic form fields with labels
  4. -
  5. JQuery CDN
  6. -
  7. JQuery handler connected to your API endpoint
  8. -
-
-
-
-
- AWS architecture diagram of super easy forms -
-
- - -
-
-
-

Built With

-
-
-
- - node js logo - -
-
- - bootstrap logo - -
-
- - AWS logo - -
-
-
-
- - -
-
-
-
-

Whats Included with AWS in Super Easy Forms?

-

You need to have an AWS account to be able to use Super Easy Forms. In the near future we are going to solve our vendor-lock in but for now AWS is a pretty good start.

- Super Easy Forms uses the following services from AWS -
    -
  • SES Simple Email Service. 1,000 emails/month for free then $.10 for every 1,000 emails recieved.
  • -
  • DynamoDB Fully managed NoSQL database. 25GB of storage free for always.
  • -
  • Lambda Let’s you run code without managing servers. 1M requests/month free always. Then $.20 per 1M requests.
  • -
  • API Gateway 1M REST API requests/month for 12months then $3.50/1M requests.
  • -
  • S3 Bucket Object storage for your file submissions (Coming soon!). 5Gb free for 12 months then $0.023 for GB.
  • -
-

Want more info? https://aws.amazon.com/free

-
-
-
-
- - -
-
-
-
-

Roadmap

-

Super Easy Forms doesn't stop here. We have a bunch of features planned that will make it more easy and more Super!

- Some of these include -
    -
  • File submissions (images, videos, PDFs and more!)
  • -
  • Payment forms (integrations with leading solution providers)
  • -
  • Direct integration with the gmail API
  • -
  • Direct export of submissions to XLS and CSV
  • -
  • Optional Captcha (Spam protection)
  • -
-
-
-
-
- -
-
Anything else you'd like us to consider?
-
- - -
- -
-
-
- - made with - - - - -
-
-
-
-
-
- - -
-
-
-
-

Our Vision

-

The more Open Source the Better! We are working on a suite of free & open source tools that help people use microservices effectively in smaller use cases like building websites.

- We believe that -
    -
  1. building websites should be fun, easy and free.
  2. -
  3. The websites you build should be fast, secure and should not require any maintenance.
  4. -
  5. There shouldn’t be a compromise between what the devs consider good tech and what the beginner perceives as user-friendly.
  6. -
-
-
-
-
-

If you share our vision, or want to learn more check out the rest of our projects at Torus Project.

-
-
-
-
- - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/test/testBuild.js b/test/testBuild.js new file mode 100644 index 0000000..65cb4cc --- /dev/null +++ b/test/testBuild.js @@ -0,0 +1,3 @@ +var build = require('../lib/build') + +build('index.html'); \ No newline at end of file diff --git a/test/testBuildAll.js b/test/testBuildAll.js new file mode 100644 index 0000000..d26ace2 --- /dev/null +++ b/test/testBuildAll.js @@ -0,0 +1,3 @@ +var buildAll = require('../lib/buildAll'); + +buildAll(); \ No newline at end of file diff --git a/test/testReverseBuild.js b/test/testReverseBuild.js new file mode 100644 index 0000000..92ce0e3 --- /dev/null +++ b/test/testReverseBuild.js @@ -0,0 +1,3 @@ +var reverseBuild = require('../lib/reverseBuild'); + +reverseBuild('index.html'); \ No newline at end of file diff --git a/test/testReverseBuildAll.js b/test/testReverseBuildAll.js new file mode 100644 index 0000000..a16e4c0 --- /dev/null +++ b/test/testReverseBuildAll.js @@ -0,0 +1,3 @@ +var reverseBuildAll = require('../lib/reverseBuildAll'); + +reverseBuildAll(); \ No newline at end of file diff --git a/toruf/components/footer.html b/toruf/components/footer.html new file mode 100644 index 0000000..09abbd2 --- /dev/null +++ b/toruf/components/footer.html @@ -0,0 +1,12 @@ + \ No newline at end of file diff --git a/toruf/components/head.html b/toruf/components/head.html new file mode 100644 index 0000000..6a47f14 --- /dev/null +++ b/toruf/components/head.html @@ -0,0 +1,20 @@ + + + + + + + + Torus Project + + + + + + + + + + + + \ No newline at end of file diff --git a/toruf/components/nav.html b/toruf/components/nav.html new file mode 100644 index 0000000..81d1295 --- /dev/null +++ b/toruf/components/nav.html @@ -0,0 +1,26 @@ + \ No newline at end of file diff --git a/toruf/methods/generic.js b/toruf/methods/generic.js new file mode 100644 index 0000000..e69de29 diff --git a/toruf/methods/nav.js b/toruf/methods/nav.js new file mode 100644 index 0000000..e69de29 diff --git a/toruf/objects/projects.json b/toruf/objects/projects.json new file mode 100644 index 0000000..c3cccf9 --- /dev/null +++ b/toruf/objects/projects.json @@ -0,0 +1,111 @@ + +{ + "torus_framework": { + "title":"The Torus Framework", + "description":"An open source serverless form generator", + "language":"javascript", + "license":"mit", + "github":"gkpty/super-easy-forms", + "website":"https://supereasyforms.com", + "installation":"https://supereasyforms.com/#getting_started" + }, + "bootlib": { + "title":"Bootlib", + "description":"A bootstrap4 template generator and theme gallery for the torus framework.", + "language":"", + "license":"", + "github":"gkpty/super-easy-forms", + "website":"https://bootlib.com", + "installation":"https://supereasyforms.com/#getting_started" + }, + "super_easy_forms": { + "title":"Super Easy Forms", + "description":"An open source serverless form generator", + "language":"", + "license":"", + "github":"gkpty/super-easy-forms", + "website":"https://supereasyforms.com", + "installation":"https://supereasyforms.com/#getting_started" + }, + "super_easy_forms_cli": { + "title":"Super Easy Forms CLI", + "description":"A complete command line interface for super easy forms. Allows you to deploy both the frontend and backend of your forms with a single command.", + "language":"", + "license":"", + "github":"gkpty/super-easy-forms-cli", + "website":"https://supereasyforms.com/#sef_cli", + "installation":"https://www.npmjs.com/package/super-easy-forms-cli" + }, + "super_easy_docs": { + "title":"Super Easy Docs", + "description":"A complete command line interface for super easy forms. Allows you to deploy both the frontend and backend of your forms with a single command.", + "language":"", + "license":"", + "github":"gkpty/super-easy-forms-cli", + "website":"https://supereasyforms.com/#sef_cli", + "installation":"https://www.npmjs.com/package/super-easy-forms-cli" + }, + "easy_md_to_html": { + "title":"Easy MD to HTML", + "description":"A markdown to html converter with no external dependencies.", + "language":"", + "license":"", + "github":"gkpty/super-easy-forms-cli", + "website":"https://supereasyforms.com/#sef_cli", + "installation":"https://www.npmjs.com/package/super-easy-forms-cli" + }, + "torus_cms": { + "title":"Torus CMS", + "description":"A complete command line interface for super easy forms. Allows you to deploy both the frontend and backend of your forms with a single command.", + "language":"", + "license":"", + "github":"gkpty/super-easy-forms-cli", + "website":"https://supereasyforms.com/#sef_cli", + "installation":"https://www.npmjs.com/package/super-easy-forms-cli" + }, + "arjan_workflows": { + "title":"Arjan Build", + "description":"A two-way templating framework for html that only uses html syntax", + "language":"", + "license":"", + "github":"gkpty/super-easy-forms-cli", + "website":"https://supereasyforms.com/#sef_cli", + "installation":"https://www.npmjs.com/package/super-easy-forms-cli" + }, + "arjan_optimize": { + "title":"Arjan Build", + "description":"A two-way templating framework for html that only uses html syntax", + "language":"", + "license":"", + "github":"gkpty/super-easy-forms-cli", + "website":"https://supereasyforms.com/#sef_cli", + "installation":"https://www.npmjs.com/package/super-easy-forms-cli" + }, + "arjan_translate": { + "title":"Arjan Translate", + "description":"A localization and translation solution for static html websites", + "language":"", + "license":"", + "github":"gkpty/super-easy-forms-cli", + "website":"https://supereasyforms.com/#sef_cli", + "installation":"https://www.npmjs.com/package/super-easy-forms-cli" + }, + "arjan_deploy": { + "title":"Arjan Deploy", + "description":"A localization and translation solution for static html websites", + "language":"", + "license":"", + "github":"gkpty/super-easy-forms-cli", + "website":"https://supereasyforms.com/#sef_cli", + "installation":"https://www.npmjs.com/package/super-easy-forms-cli" + }, + "raspi_led_animation": { + "title":"Raspberry Pi Ws1228b led animations", + "description":"A localization and translation solution for static html websites", + "language":"", + "license":"", + "github":"gkpty/super-easy-forms-cli", + "website":"https://supereasyforms.com/#sef_cli", + "installation":"https://www.npmjs.com/package/super-easy-forms-cli" + } +} diff --git a/toruf/templates/index.html b/toruf/templates/index.html new file mode 100644 index 0000000..a6cf11c --- /dev/null +++ b/toruf/templates/index.html @@ -0,0 +1,94 @@ + + + <#HEAD> + + + + <#NAV> + + +
+
+
+

Torus Project

+
+
+

Our mission is to help your open source projects/ideas come to light

+
+
+
+ + +
+
+
+
+

Torus Project is an ecosystem of intuitive and fully modular tools for your business needs.

+

Our microservice based architecture and high tech stack provides us with an advantage allowing us to pass significatn cost savings for our end users. Users will be able to pay for only what they need. For example: You could use Cubera Reservation and add a system channel manager, CRM, RMS ending up with a Full CRS centralized reservation system for your business. Aditionally users will be given the option for customer service, for an additional price.

+
+
+
+
+ + +
+
+
+
+

Projects

+
+
+
+ + +
+
+
+ +

{title}

+
+
+

{description}

+ +
+
+
+
+ +
+
+
+ + + <#FOOTER> + + + + + + + + + + + + + + + + + \ No newline at end of file