-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
export and import feature #49
Comments
Hey @amovah , Thanks for the feedback! Yeah that sounds like quite an interesting feature, we have had requests for OpenAPI: #5 which might solve the problem too? In your example would your back end dev be writing with express? Or... In theory, you could have something that maps express routes / apps into the My initial thoughts are it will be alot of effort |
@boyney123 we should consider this feature generally. for this project my server side is based on express. but maybe later, it can be python ruby java. so we should consider a better solution than mapping from express. we dont need to map express routes to mockit app. I think only thing that we need, is exporting routes that we defined in mockit app and then import in another mockit in another machine. where is mockit storing data? if I add a route into app, where is data going to be stored? in json file or a database or something like that ? if it's in file or database we can simply export that file or make a backup from database, then send it to user. so user can send that file (generated from backing up database or it's simply json file) to another user, and then that another user can simply import that file. Or we can, bring a feature that will saves all routes into json file. then we can use that json to import routes into new app. [{route: '/test', method: 'post', ..... }] something like that, and another app will read data from this array and add routes that is inside of array. |
Hey @amovah , thanks for confirming some stuff. Yeah this sounds great! We currently have a Export would save to a file on the machine Import could just take the JSON import for now, and override the configuration file. Sounds great! Did you want to try and pick this up? I dont mind doing it / helping out |
yes, I will be glad to help this out. I try to bring this feature. |
what is difference between these configurations file? 1: configuration/routes.json they are same or not ? what is their job? |
I should add some docs to this. The way the whole thing works is they each can run in isolation. Meaning in the project you can run the The config itself is the same across all the apps. When docker comes in it mounts the root To get yourself up and running I would.
If you create a new route to upload files, and have that uploaded file replace the configiration file in the server folder than things would be OK. To test everything run I will write up some more contributing docs to help |
why we can't use only one configuration file ? you confirm that, when docker comes they become one, so under development enviroment, I couldn't run this app untill I edited all of them and make them same. another thing is why we dont use one configuration file if all them are same as each other? |
first of all, mockit is great work.
it can be very good if you there is a feature that I can easily export and import my routes. for backing up stuff or sending to another one.
imagine that, I'm backend guy. and my front end guys wants to integrate with API. but API is under development, so I can mock my API and export my setting and routes and send it to my front developer. and then front developer than simply import my exported data, and use API and integrate with that.
I'm interested in to bring this feature.
The text was updated successfully, but these errors were encountered: