Skip to content
This repository has been archived by the owner on Nov 10, 2021. It is now read-only.

pgarr/dinner-roulette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What's this?

Web app to store dishes recipes. It has users who create recipes and admin who accepts them before they are visible for others.

Project contains separated frontend and backend RESTful API. Frontend is created in React.js. Backend is created in Python, uses Flask and SQLAlchemy.

Requirements

App is developed and tested on:

Python 3.7 & Node v12.16

requirements.txt and requirements-tests.txt in \flask-app folder contains Python dependencies for running and testing backend.

package.json in \react-app folder contains Node.js dependencies and devDependencies for running and testing frontend.

Useful commands

BACKEND

Push only flask-app folder to Heroku.

--git subtree push --prefix flask-app heroku master

Updates for translations (Flask-Babel).

In flask-app folder:

--(venv) $ pybabel extract -F babel.cfg -k _l -o messages.pot .

--(venv) $ pybabel update -i messages.pot -d app/translations

This creates new messages.pot file and merges it into all messages.po files for all languages in the project. After this, you can translate new entries in messages.po files and use:

--flask translate compile

This operation adds a messages.mo file next to messages.po in each language repository. The .mo file is the file that Flask-Babel will use to load translations for the application.

Updates for database structure (Flask-Migrate).

--flask db migrate

This operation generates a new migration script.

--flask db upgrade

This operation applies the changes to database.

--flask db downgrade

This command undoes the last migration (mostly used in development phase).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published