I'm setting up an app store in sharepoint and the user profile service is required. The creation of this service is not available in the manage services on server. How can I enable this as on option on the new services tab?
Yes, you can run SharePoint 2013 apps in SharePoint Foundation 2013, but with some limitation, as
Some apps may be written to leverage client side code that will only work in SharePoint Server. Those Apps won't work in Foundation. For example, an app that interacts with the User Profile Service wouldn't work in Foundation since the User Profile Service doesn't exist in SharePoint Foundation.
More info for you:
User profile service is not available in the foundation version. You need to have SharePoint Standard or SharePoint Enterprise.
Edit I see now that Microsoft states that you can develop apps in SharePoint Foundation. However, i can't see how you can follow the article for setting up a development environment if User Profiles is required.
You can develop the apps in the SharePoint Foundation 2013 but with Limitation. Even MSFT mentioned all the below features avaiable in foundation but limitation. They put 1 with it.
1 Means: Certain app authoring features require user profiles, which aren’t available in SharePoint Foundation 2013.
Conclusion : Yes you can build the apps but not fully loaded.