Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

926 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kraftjar-be

Flask Portal, Fast API backend, DB for Kraftjar App

  1. Run
poetry install
  1. Create '.env' file (simply copy file .env.sample):

  2. Run

docker compose up d db

to create an docker container

  1. Development and debugging

    This project contains both Flask and FastAPI.

    To run Flask app:

    • go to "Run and Debug" tab in VSCode and select "Python:Flask" from dropdown menu

    To run FastAPI app:

    • go to "Run and Debug" tab in VSCode and select "API" from dropdown menu

    After selection, press "Run and Debug" button or F5 key on keyboard

  2. Create db with command

flask db upgrade
  1. In main folder need install node_modules to work with tailwind, run
yarn

Commands to get data into your local db:

Go to ssh s2b and take the backup file from our server and put it in your environment:

cp /home/runner/kraftjar/backup/db_2024-10-29T10:35:27Z.tgz .
mv db_2024-10-29T10:35:27Z.tgz dump.tgz

In our project, download dump.tgz:

scp s2b:dump.tgz .
tar xvzf dump.tgz

Clear db and fill with data:

dcdn -v db
dcupd db
dce -T db psql < dump.sql

About

Flask App, Tailwindcss, FastApi, Docker

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages