add views and routes(index.js)
Complete blog's base functions.