Code Monkey home page Code Monkey logo

aida's Introduction

Hey, I'm Steve

I've worked with different languages and stacks over my career, but for the past 8 years I've been mostly focused on JavaScript and its ecosystem, and mostly working in Golang for the past 2 years. I care about software architecture, data modeling, and building products that won't need a rewrite in a year. I am a supporter of open-source as a way to build more resilient and better software, and try to contribute whenever I can. You can find more details at https://sradevski.com

Gitlab: https://gitlab.com/sradevski

My stats

aida's People

Contributors

sradevski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

aida's Issues

cli: Refactoring

Try using ShellJS to cleanup the CLI. Aside from general refactoring, try to replace some functionalities with existing libraries if possible.

consumer-faked-http: Add additional options

  • timing - Currently it supports a fixed number. Add a [from, to] range to make it randomized within the specified range
  • status - Can take the status it wishes endpoints to return. Can take a [from, to] range to randomly return statuses within the range
  • routeSettings - Object that can take an exact route (or regex) and take the same options as above and apply them only to that route.
  • passthroughRoutes - An array of routes or regex to be passed through

Allow to include/exclude models

This can be done on a global level, or per-injector level.

Ignoring files and directories is already implemented in the core, so maybe we can use that.

Create validation injector

Libraries that can be used internally for validation:

The validator can accept an array of "types" like unique, id, or custom validation functions.

General flow:

  • Get the hash value of each validation function.toString(), and store it in an object such as
const validators = {
[hashval]: () => null,
}
  • Iterate over each object in each definition
  • Get the validation function
  • If it is string, replace it with the hashval for that pre-defined function
  • If it is a function get the hash value of that function.toString(), add it to the rest of validators and replace it with the hash value.
  • At the end, you can potentially remove the unused pre-defined functions, but it is not necessary for a start.
  • Once all validators are generated, output them to a file exported as an object as the validators object above
  • In a separate file, create the validation executor which will be the connection between the validator functions and the hash value for each field in each definition.

Generate SDK template from endpoint definitions

The injector can be modified whether the SDK should be fully implemented by simply making a request to the endpoint specified, or it should not contain any implementation details and only create a skeleton for it using only the IDs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.