Skip to content
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

Serverside ressources when espresso server is running #25

Open
hano opened this issue Jul 21, 2011 · 2 comments
Open

Serverside ressources when espresso server is running #25

hano opened this issue Jul 21, 2011 · 2 comments

Comments

@hano
Copy link
Contributor

hano commented Jul 21, 2011

Wouldn't it be great, to have an folder with stuff in it, like json files, that are accessible when espresso server is running.
An Example:
Your app wants to use an interface to a server. But that interface is not implemented yet.
So you put an future like demo-file of the response in that folder. Now you can pretend to connect to the real server and use your espresso server as host and serverside interface.

@sebastianwerler
Copy link
Contributor

That's a nice idea. Sounds like some kind of server-side fixtures (e.g. fixtures for request responses). We will discuss it and then enqueue it in our working queue.

@dominiklaubach
Copy link
Contributor

I think we should define a special folder inside of an application, e.g. 'data'. Any ressources within this folder won't be included in the build process and won't be part of the cache manifest. Espresso will provide this folder as e.g. '127.0.0.1:8000/myApp/data'. So you might put a json file into this folder and can access it by sending a request to this url.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants