participateapp / web-client

Participate! is an app for democratic decision making
MIT License
6 stars 1 forks source link

Deployment of demo #59

Closed oliverbarnes closed 7 years ago

oliverbarnes commented 7 years ago

I think we should start putting this up so we can show people, and also so @tnum can review progress.

What's the state of deployment for Elm, Thomas? Where do you think we should host the demo? Is it a matter of bundling the Phoenix api with the Elm app and put it up on Heroku, for example?

ThomasWeiser commented 7 years ago

As a start I would suggest to deploy the backend to Heroku and the frontend to GitHub Pages.

Reasoning:

Options for later:

@oliverbarnes thoughts?

I will start with deploying the backend in https://github.com/oliverbarnes/participate-api/issues/35

ThomasWeiser commented 7 years ago

Locally served frontend works with the Heroku-deployed backend. Just set apiUrl ="https://participate-api.herokuapp.com"

@oliverbarnes For further tests and for deploying the frontend, could you please:

Thanks!

ThomasWeiser commented 7 years ago

Aside from Facebook authentication (see above): The test deployment at http://participate.thomasweiser.de/ seems to be working when I manually set the accessToken in session storage.

oliverbarnes commented 7 years ago

Done:

ThomasWeiser commented 7 years ago

Thanks!

Currently the app works only in a root directory. I will change that and deploy it to https://oliverbarnes.github.io/participate/

oliverbarnes commented 7 years ago

Hmm, this makes me wonder if it's not time to switch participate to its own organization, something I've been considering doing. Besides then having a https://participate.github.io where the app could run in root dir, it'd also be good for its future visibility. I might do this switch this weekend

oliverbarnes commented 7 years ago

Ok, created the organization but it looks like the github-pages is still published to a sub-directory, https://participateapp.github.io/web-client/, and that can't be changed as far as I can see. I'm updating the facebook app permissions

ThomasWeiser commented 7 years ago

Cool! Having a dedicated organization is a great step for the project.

Sure, finally the app should be deployed to a URL without sub-dirs. But I think it's no harm if the app is prepared to work also from a sub-dir URL. It's already done actually (untested though).

ThomasWeiser commented 7 years ago

Implemented in #62

Demo of current version: https://participateapp.github.io/

oliverbarnes commented 7 years ago

Cool, this is done!