https://github.com/Zoeinfp/SmartTV
The goal: To provide access to the actors of the innovation pole to a platform allowing to insert multimedia content. The platform then allows to layout the content.
With the logic of the Flask web server, our application has several routes that were indicated to him. So at the loading of the page we use the first that is satisfied to display the Bootstrap theme that it uses and contains different areas that different scripts know how to use.
The app reacts to user interactions! Jinja, inspired by Django, is a driving force template that our program also uses to reduce the content of the page to the simple body of it. The other information being stored in a layout, the legibility of the code is thus improved!
No Bootstrap theme seemed to meet the needs of the application. So we created a simple interface using a carousel on a Bootstrap grid allowing a responsive interface.
The different sections of the page are presented in separate files allowing greater project readability and greater flexibility in iterative additions.
This app is made using
- Flask ( Python Micro framework used for example for the CRUD Messages logic )
- Jinja with parenthesis delimeters for Vue.js compatibility
- Flask-SQLAlchemy ( Database ORM )
- Bootstrap + JQuery ( Usage of carousel, responsive columns and light class )
- Google translate API ( Used for Aztro english horoscope translated in title element)
- Vue.js ( Ready to be used for future releases )
- Fullcalendar ( Integration of smart calendar ) https://fullcalendar.io/
- Aztro ( API Horoscope ) https://aztro.sameerkumar.website
- Base64 ( Images Conversion )
You can either :
- Deploy the application locally by using the "python app.py" instruction
- Deploy the site to Heroku. ( Using the Procfile and the requirements files)
(Https://medium.com/the-andela-way/deploying-a-python-flask-app-to-heroku-41250bda27d0) - You can also use the Dockerfile to containerize the application
(http://containertutorials.com/docker-compose/flask-simple-app.html)