Skip to content

A project created using Flask and the MVC pattern.

Notifications You must be signed in to change notification settings

germmand/ProgLog-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProgLog-App

A project created using Flask and the MVC pattern.

Requirements:

  • Python (Version 3).
  • Pip.
  • PostgreSQL.
  • Git.

Instalación.

  1. Set up the repository locally.
  • Run the following command:

    $ git clone https://github.com/germmand/ProgLog-App.git

  • cd into the folder created:

    $ cd ProgLog-App/

  1. Set up the virtual environment.
  • As a suggestion, we recommend using virtualenv. Check out its documentation on how to install it, create it and activate it.
  1. Install dependencies.
  • Once the virtual environment has already been activated, use the following command:

    $ pip install -r requirements.txt

  1. Update the configuration environments.
  • Inside the app folder, make a copy of .settings-TEMPLATE.py removing the -TEMPLATE suffix from that new file.

  • Open the file and update the SQLALCHEMY_DATABASE_URI with its respective fields.

    • Username.
    • Password.
    • Host.
    • Port.
    • DBName.
  • Update the Cross-site request forgery session key and secret key.

    • CSRF_SESSION_KEY.
    • SECRET_KEY.
  1. Run the migrations.
  • Run the following commands:

    $ flask db upgrade

  1. Run the server.
  • In the project's root, run the command:

    $ flask run.

OPTIONAL

  • To enable debug mode, add FLASK_ENV=development to the environment.

👍

About

A project created using Flask and the MVC pattern.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published