add flask rest
add setting
add views