Skip to content

Instantly share code, notes, and snippets.

View kutliev's full-sized avatar

Bulat Kutliev kutliev

View GitHub Profile
@kutliev
kutliev / spotcard.component.ts
Created February 11, 2018 19:47
Check function
canBeDeleted():boolean{
return this.selectedSpot.cleanings.length == 0 &&
this.selectedSpot.maintenances.length == 0 &&
this.selectedSpot.payments.length == 0;
}
@kutliev
kutliev / server.js
Created February 11, 2018 19:53
Simple NodeJS server
// server.js
const express = require('express');
const app = express();
// Run the app by serving the static files
// in the dist directory
app.use(express.static(__dirname + '/dist'));
// Start the app by listening on the default
// Heroku port
app.listen(process.env.PORT || 5000);
"scripts": {
"ng": "ng",
"start": "echo START && npm install && node server.js",
"build": "NODE_ENV=production && ng build --aot --prod && ",
"preinstall": "echo PREINSTALL",
"postinstall": "HOME=/ ./node_modules/@angular/cli/bin/ng build --prod --aot"
},
"engines": {
"node": "9.4.0",
"npm": "5.6.0"
<div class="columns">
<div class="column is-two-thirds">
<h2 class="subtitle"><i class="fas fa-car"></i> Spots</h2>
<div>
<app-spotlist [spots] = "spots"></app-spotlist>
</div>
</div>
<div class="column">