Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Fasfify CouchDB integration ideas #228

Closed
PhearZero opened this issue Sep 8, 2019 · 1 comment
Closed

Fasfify CouchDB integration ideas #228

PhearZero opened this issue Sep 8, 2019 · 1 comment
Milestone

Comments

@PhearZero
Copy link
Contributor

PhearZero commented Sep 8, 2019

🚀 Feature Proposal

Fasfify proxy to the CouchDB with advance auth and db slicing.

Motivation

Adopt Fastify Server and Fastify Plugin Interface for API Services. Primary role will be as a proxy to Couchdb's REST interface. This can also include advanced authentication strategies for CouchDB, Server Side Rendering, and Database Instance management. When adopting a database per user model in CouchDB we will need middleware services in order to delegate our users to the right store and provide the proper filtered replication.

Code Generation

Generates plugins from an OpenAPI/Swagger spec and consume Shared Service Interfaces from HospitalRun/hospitalrun#12

Example

Expected Use

fastify start

Hospital Run CLI Use HospitalRun/hospitalrun#11

hospitalrun server start

Exports

This could be code generated and autoloaded but for now it's just an example

import {UserServicePlugin} from '@hospitalrun-org/server'
fastify.register(UserServicePlugin)
PhearZero referenced this issue in HospitalRun/hospitalrun Sep 10, 2019
Basic CodeGen Template #15 #13
PhearZero referenced this issue in HospitalRun/hospitalrun Sep 10, 2019
PhearZero referenced this issue in HospitalRun/hospitalrun Sep 12, 2019
@stale
Copy link

stale bot commented Nov 7, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@fox1t fox1t transferred this issue from HospitalRun/hospitalrun Jan 31, 2020
@fox1t fox1t changed the title Fastify-CLI Application Fasfify CouchDB integration ideas Jan 31, 2020
@matteovivona matteovivona added this to the v2.0.0 milestone Feb 20, 2020
@fox1t fox1t closed this as completed Mar 4, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants