protected ToQueryString(q: any): string {
const params = new URLSearchParams(q);
const keysForDel: any[] = [];
params.forEach((value, key) => {
if (value == '') {
keysForDel.push(key);
}
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 express = require('express'); | |
const path = require('path'); | |
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 || 8080); | |
// For all GET requests, send back index.html |
- Download from https://postgresapp.com/
- Install gem: sudo gem install pg -v '0.21.0' -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/11/bin/pg_config Note: Checkout the pg version you would need to install