GithubHelp home page GithubHelp logo

recipe-app-web's Introduction

Recipe app web

A simple web application of cooking recipes

To run

Before anything you must to install all the libs in a new env of python.

pip install -r requirements.txt

After that, you must define a few env variables.

export SECRET_KEY='Your secret key'
export DATABASE_URI="postgresql://username:password@host:port/database_name"
export FLASK_APP=app

If you want to run the project in debug mode and development mode, you must to create these env variables.

export FLASK_DEBUG=true
export FLASK_ENV=development

Before running everything try to migrate and upgrade the schema of the database, flask-migrate uses Alembic.

flask db init
flask db migrate
flask db upgrade

After that now you must create the models in your database.

flask models create

Finally run the app.

flask run

MockUps

These are the mockups of the app.

https://app.moqups.com/h3IlkiaF2mpUWPfcLvkJuiiinSAJSUTE/view/page/a013e980c

References

  1. Dyouri, A. (2022). How To Structure a Large Flask Application with Flask Blueprints and Flask-SQLAlchemy. DigitalOcean. https://www.digitalocean.com/community/tutorials/how-to-structure-a-large-flask-application-with-flask-blueprints-and-flask-sqlalchemy#prerequisites
  2. Python, R. (2023a). Flask by Example โ€“ Setting up Postgres, SQLAlchemy, and Alembic. realpython.com. https://realpython.com/flask-by-example-part-2-postgres-sqlalchemy-and-alembic/

recipe-app-web's People

Contributors

alecksandr26 avatar experthor avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.