HTML files for HolbertonBnB are rendered by this application server, built in Python Flask and using Jinja2.
Application:
Tool/Library | Version |
---|---|
Python | ^3.6.4 |
Flask | ^1.0.3 |
Flask-socketio | ^5.0.0 |
Assuming the above dependencies have been installed, the app server can be started using the following command:
python3 -m web_flask.app:app
Of course, the server is truly only functional in conjunction with the HolbertonBnB API.
The server for the web terminal can be started using the following command:
python3 -m web_terminal
- templates: The HTML5 content for HolbertonBnB.
- templates/index.html: The root page of HolbertonBnB.
- static: Static content included in templates/index.html.
- static/images: Image files.
- static/scripts: JavaScript scripts (uses jQuery).
- static/images: CSS3 stylesheets.
/hbnb
: Serves templates/index.html, the root page of HolbertonBnB.
Chigozirim Igweamaka - <iChigozirim>