AlbertoFDR / flask-project

Flask project for a class subject.

Home Page:https://desarrollo-libreria.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flask-project

Flask project for a class subject. Deployed the server and the database in free Heroku. The main purpose for the project was to create a free library that anyone could use to downloads books.

The project is uploaded without the database URI, the SECRET KEY, the GMAIL account and the Telegram Bot. URL: https://desarrollo-libreria.herokuapp.com/

INDEX

Used packages

  • Flask
    • Babel
    • Blueprint
    • Flask-babel
    • Flask-Mail
    • pyTelegramBotApi
    • SQLAlchemy (ORM)
    • Gunicorn
  • Jinja2
  • Bootstrap

SCREENSHOTS

CONTACT REGISTER MY BOOKS

How to run

  • First of all, install the requirements: pip3 install -r requirements.txt
  • You need to change the code in flaskr/init.py and you need to add the SECRET_KEY, the GMAIL account, the bot and the most important, the URI for the database. For the database part, the project uses SQLAlchemy so is simple to change between SQL databases and the you can use flask init-dbto create the database structure.
  • Finally you can run for "production" environment (Use the command in the base of the project): flask run

If you have any problem, you may contact me.

Phonegap

For this part I used a reduced part of the project (Index) to create an APK for Android. I used a small part of the project because the project uses Jinja2 that is incompatible with Phonegap.

  • APK
  • Client: The part that was uploaded to Phonegap to create the apk.
  • Server: Which is a reduced part (Only the index) of the main project an instead using Jinja2 uses a JS to return the books.

Resources

Projects used as examples

About

Flask project for a class subject.

https://desarrollo-libreria.herokuapp.com/

License:GNU General Public License v3.0


Languages

Language:JavaScript 81.3%Language:HTML 10.7%Language:Python 7.4%Language:CSS 0.6%