Raathigesh / atmo

:heavy_check_mark: Mock data for your prototypes and demos. Remote deployments to Zeit now.
815 stars 46 forks source link

I'm really confused on how to use this #28

Closed eorroe closed 8 years ago

eorroe commented 8 years ago

Could you make a video on how this is used?

Raathigesh commented 8 years ago
  1. Install the atmo globally with npm install atmo -g
  2. Open command prompt and type atmo and you will get two URLs.
    • First URL (http://localhost:3333) is the UI where you can create the endpoints.
    • Click the 'Deploy' button in the UI to deploy the changes you have made.
    • Use the second URL (http://localhost:3334) to access the APIs you have created.

Let me know weather still it's unclear. I will try to make a getting started video.

eorroe commented 8 years ago

Just tried it this is really interesting. This would go so ahead of what you probably have in mind, but just wondering how hard that would be to implement. What if I did atmo app.js and it was able to read every route implemented via expressjs and it outputed it to the atmo dashboard (again just wondering if you'd be interested in playing with something like that)

Raathigesh commented 8 years ago

Glad you managed to get it working.

It's an interesting idea to load an already written app but the problem would be Atmo curretntly returns JSON on routes but in an exising express application there would be custom implementation (JavaScript Code), So it could be tricky to load them in a UI.

What kind of advantage a feature like that would bring ?

eorroe commented 8 years ago

Right now I wouldn't use this but when it comes to building a rest api for hackathons this could be useful.

The advantage may be to visually see each endpoint. Not sure how much of an advantage that would be. (I wouldn't focus on that right now, just leave this issue open on that or I can create another issue for that and close this one?? then when you get more users someone may vote for this)

Raathigesh commented 8 years ago

Swagger UI would be an ideal way if you want to visualize endpoints. I'm closing this for the time being. Let's reopen if this idea has some potential value.