Based off of: http://docs.sequelizejs.com/en/1.7.0/articles/express/
Create and initialize your a directory for your Express application.
$ mkdir sequelize-demo
const echarts = require("echarts"); | |
const Canvas = require('canvas'); | |
const {JSDOM} = require('jsdom'); | |
const fs = require('fs'); | |
echarts.setCanvasCreator(() => { | |
return new Canvas(100, 100); | |
}); | |
const {window} = new JSDOM(); | |
global.window = window; |
Based off of: http://docs.sequelizejs.com/en/1.7.0/articles/express/
Create and initialize your a directory for your Express application.
$ mkdir sequelize-demo
function slugify(string) { | |
const a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìıİłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;' | |
const b = 'aaaaaaaaaacccddeeeeeeeegghiiiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------' | |
const p = new RegExp(a.split('').join('|'), 'g') | |
return string.toString().toLowerCase() | |
.replace(/\s+/g, '-') // Replace spaces with - | |
.replace(p, c => b.charAt(a.indexOf(c))) // Replace special characters | |
.replace(/&/g, '-and-') // Replace & with 'and' | |
.replace(/[^\w\-]+/g, '') // Remove all non-word characters |
[Desktop Entry] | |
Encoding=UTF-8 | |
Name=Postman | |
Exec=postman | |
Icon=/home/USERNAME/Postman/app/resources/app/assets/icon.png | |
Terminal=false | |
Type=Application | |
Categories=Development; |
I did not find a single exhaustive resource which describes the process of Docker installation on Windows. This gist describes how to install docker on Windows 10, assuming virtualization is disabled on your PC.
docker pull hello-world
var path = require('path') | |
module.exports = { | |
'config': path.resolve('server', 'config', 'database.json'), | |
'migrations-path': path.resolve('server', 'migrations'), | |
'models-path': path.resolve('server', 'models'), | |
'seeders-path': path.resolve('server', 'seeders'), | |
} |