Set up database/API and create form that submits to database/API
See this architecture doc in the wiki for backend requirements.
We can create a single-page form for now.
Screenshots
Page 1

Page 2

Page 3

Hi! This seems like a good use case for a Rails API with a PostgresDB. What do people think?
We had a discussion on Gitter with @cattsmall and @jalcine and decided on a few basic architecture decisions:
Hosting:
- Ubuntu 17.04 Server on Digital Ocean
Database:
- PSQL
Backend server/API:
- Sinatra w/ GraphQL
Front-End:
- EmberJS
some general whiteboarding being done here - https://sketchboard.me/VAFHP1lgrOJW#/
ask me or one of the team members for editing access =)
Jacky created an architecture wiki post: https://github.com/GoodForPoC/GoodForPoC/wiki/Architecture
Feel free to discuss it here!
Hey all! I set up Sinatra and GraphQL in a Gemfile + did a fresh install of EmberJS. It's been pushed in the newest file. I'll make sure to reference this issue in future posts.
Feel free to take it from here and get the backend set up beyond that!
To ensure reproducibilty and transparency of the infra, we're going to define some server provisioning scripts. I'll open another issue about this (and end up working on this, lol).
Tight, thanks Catt!
I'm going to open a new repository that'll hold the API that this client would hit. In that repository, it'll have the infrastructure building code there as well. I'll track those things there and make it a bocker for this.
The new repository is here: https://github.com/goodforpoc/goodforpoc-api.
So, I don't wanna block y'all re: getting data. We can use some tooling to make a "mock" resource for y'all (using mirage + pretender).
Once the API's fully ready; it'd be a hot swap - won't notice a thing :)
Got some code here that'll set up a mock GraphQL endpoint. https://github.com/GoodForPoC/GoodForPoc-Api/pull/10.
So the above is done (re: https://github.com/GoodForPoC/GoodForPoC-API/pull/10).
Now we'd just have to have the frontend use models that communicate with this.
Most of the frontend models needed are in.
Is this still blocked?
A bit, but we can get around it.
Direct Unblocking Route
- [ ] Have API provide some tests to show how to post a model.
- [ ] Provide tests showing failures to give examples on how to handle it.
Concurrent Unblocking Route
Use ember-cli-mirage and this method in this blog post to work on GraphQL-esque stuff without having to wait on the API to fully support it.
@jalcine this makes sense to me! Godspeed, and let me know how I/others can help!
Will do. I'll add information about the direct unblocking route since it's better long-term.