Skip to content
/ whamon Public

A blog system wrote by ES6 and powered by original Node.js without any framework.

License

Notifications You must be signed in to change notification settings

tiyee/whamon

Repository files navigation

whamon

A blog system wrote by ES6 and powered by original Node.js without any framework.

Install

  1. yarn install

  2. yarn pro or yarn dev

Import mysql

Database must be configured before starting this application.

  1. Exec sqlscript in ./angemon.sql

  2. Configure config file in ./config dir

Nginx location


 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;

        }

Run

node ./srcipts/index.js or yarn start

Example

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.