Real World Example using Zeit's Micro and Vincit's Objection
MIT License
Real World Example using Zeit's Micro and Vincit's Objection
This is a little example of a Real World App API specification.
"Conduit" is a social blogging site (i.e. a Medium.com clone). It uses a custom API for all requests, including authentication. You can view a live demo over at https://demo.realworld.io
General functionality:
src/config.js
.micro-dev
globally: "npm i -g micro-dev".npm install
.npm run start-dev
.You can import all requests to use with Insomnia by clicking here.
To deploy this example, you just need to type now
.
It is advised to take a look at now secrets.
This is not a good example of a microsservice application. The API specification is too tightly coupled.
It means that we have too much dependency to justify having more than one service, an example of this would be when accessing /articles/feed
, where we need to join users
with articles
in a very sensitive way.
For now we are not separating this big service into smaller one, but it is possible to add more services like "email", "images", "auth", etc.
Your feedback is appreciated!