Permalink
Browse files

initial

  • Loading branch information...
indutny committed Dec 11, 2010
0 parents commit 608fff7bb403756f3af90724f7741b0ca4899981
Showing with 129 additions and 0 deletions.
  1. +7 −0 .couchappignore
  2. +1 −0 .couchapprc
  3. +40 −0 README.md
  4. BIN _attachments/images/b.jpg
  5. +27 −0 _attachments/index.html
  6. +47 −0 _attachments/style/main.css
  7. +1 −0 _id
  8. +4 −0 couchapp.json
  9. +1 −0 language
  10. +1 −0 rewrites.json
@@ -0,0 +1,7 @@
+[
+ // filenames matching these regexps will not be pushed to the database
+ // uncomment to activate; separate entries with ","
+ // ".*~$"
+ // ".*\.swp$"
+ // ".*\.bak$"
+]
@@ -0,0 +1 @@
+{}
@@ -0,0 +1,40 @@
+## Generated by CouchApp
+
+CouchApps are web applications which can be served directly from [CouchDB](http://couchdb.apache.org). This gives them the nice property of replicating just like any other data stored in CouchDB. They are also simple to write as they can use the built-in jQuery libraries and plugins that ship with CouchDB.
+
+[More info about CouchApps here.](http://couchapp.org)
+
+## Deploying this app
+
+Assuming you just cloned this app from git, and you have changed into the app directory in your terminal, you want to push it to your CouchDB with the CouchApp command line tool, like this:
+
+ couchapp push . http://name:password@hostname:5984/mydatabase
+
+If you don't have a password on your CouchDB (admin party) you can do it like this (but it's a bad, idea, set a password):
+
+ couchapp push . http://hostname:5984/mydatabase
+
+If you get sick of typing the URL, you should setup a `.couchapprc` file in the root of your directory. Remember not to check this into version control as it will have passwords in it.
+
+The `.couchapprc` file should have contents like this:
+
+ {
+ "env" : {
+ "public" : {
+ "db" : "http://name:pass@mycouch.couchone.com/mydatabase"
+ },
+ "default" : {
+ "db" : "http://name:pass@localhost:5984/mydatabase"
+ }
+ }
+ }
+
+Now that you have the `.couchapprc` file set up, you can push your app to the CouchDB as simply as:
+
+ couchapp push
+
+This pushes to the `default` as specified. To push to the `public` you'd run:
+
+ couchapp push public
+
+Of course you can continue to add more deployment targets as you see fit, and give them whatever names you like.
Binary file not shown.
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="UTF-8">
+
+ <meta http-equiv="X-UA-Compatible" content="chrome=1">
+ <meta name="description" content="Javascript, Ruby, Python, PHP, C++ coder.">
+ <meta name="keywords" content="Indutny, javascript">
+
+ <link href='http://fonts.googleapis.com/css?family=Just+Me+Again+Down+Here' rel='stylesheet' type='text/css'>
+ <link rel="stylesheet" href="style/main.css" type="text/css">
+
+ <title>Fedor Indutny</title>
+ </head>
+ <body>
+ <h1>Fedor Indutny</h1>
+ <p>That's my home page. All the info will be here soon</p>
+ <div class="contacts">
+ <h3>My contacts:</h3>
+ <ul>
+ <li><b>Email:</b> <a href="mailto:fedor@indutny.com">fedor@indutny.com</a></li>
+ <li><b>Skype:</b> fedor.indutny</li>
+ <li><b>Github:</b> <a href="http://github.com/donnerjack13589">http://github.com/donnerjack13589</a></li>
+ </ul>
+ </div>
+ </body>
+</html>
@@ -0,0 +1,47 @@
+/* add styles here */
+
+* {
+ padding: 0;
+ margin: 0;
+}
+
+html, body {
+ height: 100%;
+}
+
+body {
+ text-align: center;
+ background: transparent url(../images/b.jpg) no-repeat 50% 50%;
+ font-family: 'Just Me Again Down Here', arial, serif;
+ font-size: 40px;
+ color: white;
+ text-shadow: 0 0 5px #000;
+}
+
+h1 {
+ text-align: center;
+ font-size: 150px;
+ font-weight: normal;
+ cursor: normal;
+ color: #333;
+ text-shadow: 0 2px 3px #555;
+}
+
+.contacts {
+ padding-top: 20px;
+ color: black;
+ text-shadow: none;
+ background: -webkit-gradient(
+ linear,
+ left bottom,
+ left top,
+ color-stop(0, #fff),
+ color-stop(1, rgba(255,255,255,0))
+ );
+ background: -moz-linear-gradient(
+ center bottom,
+ #fff 0%,
+ rgba(255,255,255,0) 100%
+ );
+ font-size: 30px;
+}
1 _id
@@ -0,0 +1 @@
+_design/homepage
@@ -0,0 +1,4 @@
+{
+ "name": "Name of your CouchApp",
+ "description": "CouchApp"
+}
@@ -0,0 +1 @@
+javascript
@@ -0,0 +1 @@
+[{"to": "index.html", "from": ""}, {"to": "favicon.ico", "from": "favicon.ico"}, {"to": "js/*", "from": "js/*"}, {"to": "style/*", "from": "style/*"}, {"to": "images/*", "from": "images/*"}, {"to": "vendor/*", "from": "vendor/*"}, {"to": "../../*", "from": "homepage/*"}]

0 comments on commit 608fff7

Please sign in to comment.