Skip to content

timurshuk/zarplata.ru-python-test

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Configuration application

Create schema before running application:

CREATE SCHEMA `zarplata.ru-test` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;

Change database connection in config.py

SQLALCHEMY_DATABASE_URI = 'mysql://username:password@server/db'

Set up environment variable

export FLASK_APP=run.py # for linux
set FLASK_APP=run.py # for Windows

Run migrations:

flask db upgrade

Load vacancies:

flask load-vacancies

Run application

python run.py

For using API open url

http://127.0.0.1:5000/vacancies/similar/<id>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.1%
  • Mako 3.9%