rootproject
folder (starting point) 2.project_name
folder 3.package.json
file 4.node_modules
folder (all dependencies) 4..env
file (or/and other non-committed environment/settings files) 5.project_name
folder (the folder to contain source code) 6.app
folder (client side files)server
folder (server side files)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script data-require="jquery@2.1.3" data-semver="2.1.3" src="http://code.jquery.com/jquery-2.1.3.min.js"></script> | |
<link rel="stylesheet" href="style.css" /> | |
<link data-require="bootstrap@3.3.2" data-semver="3.3.2" rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" /> | |
<script data-require="bootstrap@3.3.2" data-semver="3.3.2" src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script data-require="jquery@2.1.3" data-semver="2.1.3" src="http://code.jquery.com/jquery-2.1.3.min.js"></script> | |
<link rel="stylesheet" href="style.css" /> | |
<link data-require="bootstrap@3.3.2" data-semver="3.3.2" rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" /> | |
<script data-require="bootstrap@3.3.2" data-semver="3.3.2" src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var React = require('react/addons'); | |
var { PureRenderMixin } = React.addons; | |
var Fluxxor = require('fluxxor'); | |
var StoreWatchMixin = Fluxxor.StoreWatchMixin; | |
var Utils = require ('../../Utils'); | |
var EC = require('../../EventConstants'); | |
const SubItem = require('./SubItem'); | |
var ProductListView = React.createClass({ | |
mixins: [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// IndexedDB | |
var indexedDB = window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB || window.OIndexedDB || window.msIndexedDB, | |
IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction || window.OIDBTransaction || window.msIDBTransaction, | |
dbVersion = 1.0; | |
// Create/open database | |
var request = indexedDB.open("local", dbVersion), | |
db, | |
createObjectStore = function (dataBase) { | |
// Create an objectStore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var async = require('async'); | |
var GitHubApi = require("github@0.2.4"); | |
// module.exports = function (ctx, done) { | |
// var words = ctx.data.title | |
// .split(' ') | |
// .concat( | |
// ctx.data.excerpt.split(' ') | |
// ); | |
// MongoClient.connect(ctx.data.MONGO_URL, function (err, db) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const riot = require('riot') | |
<aws-uploader> | |
<div class='container'> | |
<form method="POST" action="/save-details"> | |
<input type="file" id="file-input" onchange={initUpload}> | |
<p id="status">Please select a file</p> | |
<section if={opts.imagefile === 'true'}> | |
<img style="border:1px solid gray;width:300px;" id="preview" src="/images/default.png"> | |
<input type="hidden" id="avatar-url" name="avatar-url" value="/images/default.png"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style id="jsbin-css"> | |
tr { | |
border-bottom: 1px solid black; | |
} | |
</style> | |
<meta name="description" content="RxJS + fetch data + update UI"> | |
<script src="https://unpkg.com/@reactivex/rxjs@5.0.3/dist/global/Rx.js"></script><h1>Hello, Rx.js!</h1> | |
<table> | |
<thead> | |
<tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fastcgi_cache_path /var/cache/nginx/welcome.com_fastcgi levels=1:2 keys_zone=welcome.com_fastcgi:5m max_size=67108864; | |
server { | |
listen XXX.XX.XX.XX:80; | |
server_name example.com; | |
server_name www.example.com; | |
server_name ipv4.example.com; | |
error_page 400 "/error_docs/bad_request.html"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Gitpod and Expo setup | |
#### The tunnel mode | |
- add `.gitpod.dockerfile` and `.gitpod.yml` from [here](https://github.com/saurshaz/react-native-expo-gitpod) to any expo project you open in gitpod.io | |
- Open Terminal then Write : --> expo start -c --tunnel | |
- the web one can run in preview only . by default `https://19006-e870944b-7af1-4ea4-ba25-ca6fa2a7bcb6.ws-us03.gitpod.io/` (the url will change .. this is my app's) | |
- YOu will be able to see the Just before the QR code on terminal their also exist a link something like this | |
"exp://n5-aev.anonymous.rn-composable-ui.exp.direct:80" (Change as per ur URL) Copy this link and open in mobile / YOU CAN DIRECTLY SCAN THE QR CODE BY OPENING EXPO APP AT you phone expo app |