Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h-abid committed Aug 8, 2016
0 parents commit 06da182
Show file tree
Hide file tree
Showing 6,047 changed files with 371,084 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/client/node_modules/
/server/vendor/
/server/logs/*
!/server/logs/README.md
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Slim Framework 3 Skeleton Application

Use this skeleton application to quickly setup and start working on a new Slim Framework 3 application. This application uses the latest Slim 3 with the PHP-View template renderer. It also uses the Monolog logger.

This skeleton application was built for Composer. This makes setting up a new Slim Framework application quick and easy.

## Install the Application

Run this command from the directory in which you want to install your new Slim Framework application.

php composer.phar create-project slim/slim-skeleton [my-app-name]

Replace `[my-app-name]` with the desired directory name for your new application. You'll want to:

* Point your virtual host document root to your new application's `public/` directory.
* Ensure `logs/` is web writeable.

That's it! Now go build something cool.
17 changes: 17 additions & 0 deletions client/gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
var gulp = require('gulp');
var tsc = require('gulp-typescript');
var tsProject = tsc.createProject('tsconfig.json');
var embedTemplates = require('gulp-angular-embed-templates');

gulp.task('app.build', function () {
var tsResult = gulp.src('ng2/**/*.ts', {base: './ng2'})
.pipe(embedTemplates({sourceType: 'ts', minimize: {quotes: true }})) // inline templates
.pipe(tsc(tsProject));

return tsResult.js
.pipe(gulp.dest('../public/ng2/app'));
});



gulp.task('default', ['app.build']);
3 changes: 3 additions & 0 deletions client/ng2/app.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h1>Welcome</h1>

<h3>I am {{name}}. Hi there.</h3>
14 changes: 14 additions & 0 deletions client/ng2/app.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Component } from '@angular/core';

@Component({
selector: 'ng-app',
templateUrl: 'app.component.html',
providers: [],
directives: [],
inputs: []
})
export class AppComponent {

name:string = "ng2";

}
13 changes: 13 additions & 0 deletions client/ng2/bootstrap.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/// <reference path="../typings/index.d.ts" />

import { bootstrap } from '@angular/platform-browser-dynamic';
import { HTTP_PROVIDERS } from '@angular/http';
import { disableDeprecatedForms, provideForms } from '@angular/forms';
import { AppComponent } from './app.component';

bootstrap(AppComponent, [
HTTP_PROVIDERS,
disableDeprecatedForms(),
provideForms()
])
.catch((err: any) => console.error(err));;
38 changes: 38 additions & 0 deletions client/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "abd-ng2-test",
"version": "1.0.0",
"author": "Ahmedul Haque Abid",
"private": true,
"license": "MIT",
"dependencies": {
"@angular/common": "2.0.0-rc.4",
"@angular/compiler": "2.0.0-rc.4",
"@angular/core": "2.0.0-rc.4",
"@angular/forms": "0.2.0",
"@angular/http": "2.0.0-rc.4",
"@angular/platform-browser": "2.0.0-rc.4",
"@angular/platform-browser-dynamic": "2.0.0-rc.4",
"@angular/router": "3.0.0-beta.2",
"@angular/router-deprecated": "2.0.0-rc.2",
"@angular/upgrade": "2.0.0-rc.4",
"angular2-in-memory-web-api": "0.0.14",
"core-js": "^2.4.0",
"i18next-sprintf-postprocessor": "^0.2.2",
"ng2-i18next": "^0.1.6",
"reflect-metadata": "^0.1.3",
"rxjs": "5.0.0-beta.6",
"systemjs": "0.19.27",
"zone.js": "^0.6.12"
},
"repository": {},
"devDependencies": {
"gulp": "^3.9.1",
"gulp-angular-embed-templates": "^2.2.0",
"gulp-sourcemaps": "^1.6.0",
"gulp-typescript": "^2.13.6",
"ts-node": "^1.2.2",
"tslint": "^3.14.0",
"typescript": "^1.8.10",
"typings": "^1.3.2"
}
}
27 changes: 27 additions & 0 deletions client/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"compilerOptions": {
"target": "es5",
"module": "system",
"moduleResolution": "node",
"sourceMap": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": true,
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true,
"noLib": false,
"declaration": false,
"outDir": "../public/ng2/app",
"outFile": "../public/ng2/app/main.js"
},
"exclude": [
"gulpfile.ts",
"node_modules",
"typings",
"typings/index.d.ts",
"typings/globals/core-js",
"typings/globals/core-js/index.d.ts",
"typings/globals/node",
"typings/globals/node/index.d.ts"
]
}
93 changes: 93 additions & 0 deletions client/tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{
"rules": {
"class-name": true,
"comment-format": [
true,
"check-space"
],
"curly": true,
"eofline": true,
"forin": true,
"indent": [
true,
"spaces"
],
"label-position": true,
"label-undefined": true,
"max-line-length": [
true,
140
],
"member-access": false,
"member-ordering": [
true,
"static-before-instance",
"variables-before-functions"
],
"no-arg": true,
"no-bitwise": true,
"no-console": [
true,
"debug",
"info",
"time",
"timeEnd",
"trace"
],
"no-construct": true,
"no-debugger": true,
"no-duplicate-key": true,
"no-duplicate-variable": true,
"no-empty": false,
"no-eval": true,
"no-inferrable-types": true,
"no-shadowed-variable": true,
"no-string-literal": false,
"no-switch-case-fall-through": true,
"no-trailing-whitespace": true,
"no-unused-expression": true,
"no-unused-variable": true,
"no-unreachable": true,
"no-use-before-declare": true,
"no-var-keyword": true,
"object-literal-sort-keys": false,
"one-line": [
true,
"check-open-brace",
"check-catch",
"check-else",
"check-whitespace"
],
"quotemark": [
true,
"single"
],
"radix": true,
"semicolon": [
"always"
],
"triple-equals": [
true,
"allow-null-check"
],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}
],
"variable-name": false,
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
]
}
}
6 changes: 6 additions & 0 deletions client/typings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160602141332",
"node": "registry:dt/node#6.0.0+20160621231320"
}
}
Loading

0 comments on commit 06da182

Please sign in to comment.