Skip to content

xcodinas/motoapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MOTOAPI

Install requiremnts:

$ python setup.py develop

Instalation

$ flask db init
$ flask db migrate
$ flask db upgrade

Creating an user

$ python manage.py create_user

The default admin user will be:

[email protected] | Admin | admin

If you want a custom email / name / password you should use the function parameters:

$ python manage.py create_user --name admin --email [email protected] --pasword admin

In order to connect to the application run the flask development server

$ FLASK_APP=motoapi flask run

Translations

Generate the translation strings base file

$ pybabel extract -F babel.cfg -o messages.pot .
$ pybabel update -i messages.pot -d motoapi/translations

Init a new translation language

$ pybabel init -i messages.pot -d motoapi/translations -l es

Update the language with new strings in base file

$ pybabel update -i messages.pot -d motoapi/translations

Compile the translation files

$ pybabel compile -d motoapi/translations

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •