whiskeylover / idreamoftoast

idreamoftoast
Apache License 2.0
1 stars 0 forks source link

Restructure project directory! #2

Closed danriti closed 11 years ago

danriti commented 11 years ago

@whiskeylover:

I wish to restructure the project directory to use a layout that is common in web applications:

/ (project top level)
/docs
/toast (web application level)
+--> /assets
+--> /tests
+--> *.py
'--> *.html

So with this layout, the folders have the following purpose:

I also want to remove the venv from the repo, as this is something that should stay local to each development environment.

Let me know your thoughts on this and we can discuss =)

whiskeylover commented 11 years ago

I was thinking of moving the HTMLs outside of the project to a new project. If we want to have the HTMLs served by the Flask server, we'd need to put them in the "templates" folder and all assets in the "static" folder.

What do you think?

danriti commented 11 years ago

We really only need a single repo for this, so how about this change:

/ (project top level)
/docs
/toast (web application level)
+--> /tests
+--> *.py
'--> /public
     +--> /assets
     '--> *.html

With this structure, you get the following benefits:

  1. You can host the public directory using Apache as the root directory. This allows really fast serving of our static pages.
  2. You don't expose any of the python web app, as it's a level up
  3. Flask app/server runs completely seperate

Thoughts?

whiskeylover commented 11 years ago

This looks great.

Where do we plan to host this? We need a host that allows us to configure Apache and stuff.

danriti commented 11 years ago

Dreamhost should allow us to do everything we want, as I've done similar setups in the past. I'll add a new issue to investigate and do a proof of concept.