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

Reintroduce a back-end API and enable persistence #47

Open
jpdillingham opened this issue Jan 30, 2019 · 3 comments
Open

Reintroduce a back-end API and enable persistence #47

jpdillingham opened this issue Jan 30, 2019 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@jpdillingham
Copy link
Member

Move generation of startup/noun pairings back to a back-end and reconfigure the application to fetch pairings from it rather than generating them directly in the browser.

A datastore of some type will be necessary to store the lists of startups and nouns, and should be flexible to support additional functionality.

@jpdillingham jpdillingham added the enhancement New feature or request label Jan 30, 2019
@jpdillingham
Copy link
Member Author

Related to #45 and a prerequisite for #46

@mtliendo
Copy link

Would the desired behavior be to have a request made to the api on every button click? Similar to the advice api?

@jpdillingham
Copy link
Member Author

I'm imagining an /idea/ endpoint that would return an object with startup, noun and id properties. If a record for the startup/noun pairing exists in the database, return that id, otherwise generate one randomly. An extension of this would be /idea/id/ that would act as a permalink to that pairing.

In this scenario the id would be saved the first time someone 'reacts' or shares it to social media, otherwise it would be thrown away.

@mtliendo mtliendo self-assigned this Jan 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants