vitta-health / attiv Goto Github PK
View Code? Open in Web Editor NEWFast framework for software development using node
Fast framework for software development using node
Is your feature request related to a problem? Please describe.
Setup a unit tests runner for testing the framework folder
Describe the solution you'd like
Setup a unit tests runner with mocha or jest
Describe alternatives you've considered
None.
Additional context
None.
Is your feature request related to a problem? Please describe.
Today to start a new attiv project we use a few interfaces that had to be imported direct from dependencies. This couldn't be interesting if we can create a decoupled framework.
Ex:.
const { asClass, asValue } = require('awilix');
Describe the solution you'd like
Create and export in attiv interfaces and functions that implements the requirements from awillix and express
Describe alternatives you've considered
None
Sometime we want to hide some sensitive data from a table (Eg. Password). Using the generic repository framework I can search for all the columns or maybe ask the controlle to retrieve the whole table.
How to prevent that?
Is your feature request related to a problem? Please describe.
Because of the content of file attiv/framework/application/middlewares/responseHandler.ts i need to put a DBContext on the container otherwise the framework breaks when answer through the handler
Describe the solution you'd like
Involve the call of container.resolve() with a try catch block and check if the Object is null/undefined in the function
Describe alternatives you've considered
Additional context
None.
The idea here is to create scripts to generate code in production format, or homologation, to run tests, to clean up temporary files, to control the docker, and others.
In the past few years, more and more APIs have begun to follow the RFC5988 convention of using the Link header to provide URLs for the next page.
An API that uses the Link header can return a set of ready-made links so the API consumer doesn't have to construct links themselves. This is especially important when pagination is cursor based. Here is an example of a Link header used properly, grabbed from GitHub's documentation:
Link: https://api.github.com/user/repos?page=3&per_page=100; rel="next",
https://api.github.com/user/repos?page=50&per_page=100; rel="last"
next - shows the URL of the immediate next page of results.
last - shows the URL of the last page of results.
first - shows the URL of the first page of results.
prev - shows the URL of the immediate previous page of results.
The response includes also additional information about pagination like total entries and total pages.
Example headers:
X-Total-Entries: 60
X-Total-Pages: 2
Is your feature request related to a problem? Please describe.
In file attiv/framework/application/routes/index.ts we can see that is a router called API that wasn't exposed, and only a health check route is defined, but this wasn't exposed
Describe the solution you'd like
My solution is to define the healthcheck route in the main router and don't expose api subgroup.
Describe alternatives you've considered
None.
Additional context
None.
Is your feature request related to a problem? Please describe.
Setup a unit tests runner for testing the example folder
Describe the solution you'd like
Setup a unit tests runner with mocha or jest
Describe alternatives you've considered
None.
Additional context
None.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.