setup foundation for API and APP