Skip to content

jerichoruz/backbloggie

Repository files navigation

Installation

  • Install Python, Pipenv and Postgres on your machine

  • Clone the repository $ git clone git@github.com:jerichoruz/backbloggie.git

  • Change into the directory $ cd /backbloggie

  • Create the project virtual environment with $ pipenv --three command

  • Activate the project virtual environment with $ pipenv shell command

  • Install all required dependencies with $ pipenv install

  • Rename .env.sample to .env and edit variables

    FLASK_ENV=development
    FLASK_PORT=5005
    DATABASE_URL=postgres://user:pass@localhost:5432/bd
    JWT_SECRET_KEY=pass_salt_phrase
    PAYPAL_ID=
    PAYPAL_SECRET=
    MAIL_SERVER=mail.server.com
    MAIL_PORT=465
    MAIL_USERNAME=user
    MAIL_PASSWORD=pass
    
  • Create database blog

    $ sudo su - postgres -c "createuser -s blog" 2> /dev/null || true
    $ psql
    # ALTER USER bloguser WITH ENCRYPTED PASSWORD 'blog';
    # CREATE DATABASE blog WITH TEMPLATE template0;
    # ALTER DATABASE blog OWNER TO blog;
    
  • $ flask db init

  • $ flask db migrate

  • $ flask db upgrade

  • Start the app with python run.py

  • File BACKBLOGGIE.postman_collection.json its a Postman collection just import for test your backend

  • standalone_html_paypal_test_button.html its a html file to test the paypal button with the backend and update items_paid column in user using the button

Where should I host My web app?

The ideal VPS for open community web apps in México https://conectika.tech/standar-vps

Releases

No releases published

Packages

No packages published