Better HN
topnewbestaskshowjobs
Log inSign up

devrafx

5 karma · joined Aug 19, 2023 (3y ago) · 9 submissions

A Frontend guy
Submissions

comment 3y ago · link · parent

Yeah, I've been thinking that would be nice to create a folder that holds all the json with the data mocked once using your interfaces as reference, that way could be used for unit testing.

2.

Ask HN: Would be good to create a NPM package that creates mocks from TS source?

2 points · by devrafx · 3y ago · 2 comments

3.

Show HN: I made an open-source TypeScript to JSON for mockering data(github.com ↗)

3 points · by devrafx · 3y ago · discuss

4.

Show HN: Creating mock data using TypeScript interfaces(butlermock.online ↗)

57 points · by devrafx · 3y ago · discuss

5.

Show HN: Simple open-source tool for mocking using TS interfaces(github.com ↗)

3 points · by devrafx · 3y ago · discuss

comment 3y ago · link · parent

If you are that fast, just check the main.js in the src folder, there you will see the query params it just a GET :)

When running, just go to the '/api' endpoint.

comment 3y ago · link · parent

I made it, but I have to document that API: avartation-api.vercel.app/api

The code source: https://github.com/Devrax/avartation-api

comment 3y ago · link · parent

A tool for building mocks from typescript's types/interfaces into object with actual data provided by Fakerjs

9.

How to TypeScript to JSON with Butlermock(butlermock.deno.dev ↗)

3 points · by devrafx · 3y ago · 1 comment