restructure app and add api project