A blog system wrote by ES6 and powered by original Node.js without any framework.
-
yarn install
-
yarn pro
oryarn dev
Database must be configured before starting this application.
-
Exec sqlscript in ./angemon.sql
-
Configure config file in ./config dir
location = / {
proxy_pass http://127.0.0.1:3000/;
}
location ~* ^/post/([0-9a-z]+)\.html$ {
proxy_pass http://127.0.0.1:3000/post?id=$1;
}
location ~ ^/tag {
if ($request_uri ~* ^/tag/(.*)\.html$) {
proxy_pass http://127.0.0.1:3000/tag?id=$1;
}
}
location ~* ^/(about|opensource|sitemap)\.(html|xml)$ {
proxy_pass http://127.0.0.1:3000/$1;
}
node ./srcipts/index.js
or yarn start
I just want to create it to rebuild my blog by node.js , you can visit www.tiyee.net.
I have started a server in whamon.tiyee.cn.