Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move all public facing content to static site? #10

Closed
GUI opened this issue Nov 28, 2013 · 1 comment
Closed

Move all public facing content to static site? #10

GUI opened this issue Nov 28, 2013 · 1 comment

Comments

@GUI
Copy link
Member

GUI commented Nov 28, 2013

For api.data.gov, the public site is split between a static site and the web project. At this point, the only thing the web project is actually providing is the signup form and the contact form--everything else is coming from the static site. One of the main downsides of this split is a duplication in the stylesheet and themes between the two projects.

One solution might be to pull in the static site into the rails web app as a git submodule, so we could at least rely on most of the same resources (although the layout files would still be separate).

A better solution might be to move those last two pieces into the static site, and have them perform an ajax-ified signup process. Then at that point, the web project would only be providing public APIs for signing up or sending a contact message, as well as the web admin. Even if we end up introducing a more robust and dynamic user management section on the public site, (login, etc), I think that could still be tackled inside the static site if we build it out as an Ember (or equivalent) app.

@GUI
Copy link
Member Author

GUI commented Oct 27, 2014

We made this move a while ago with api.data.gov--it now performs all the signup/other dynamic bits via API calls to the web project. The api-umbrella-static-site template site used in default installs also takes this same approach.

@GUI GUI closed this as completed Oct 27, 2014
GUI added a commit that referenced this issue Sep 27, 2015
Implement new HTTPS requirement behavior
GUI added a commit that referenced this issue Sep 27, 2015
Add admin interface for managing website backend configurations
ape-lazy pushed a commit to ape-lazy/api-umbrella that referenced this issue May 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant