33 lines
956 B
Makefile
33 lines
956 B
Makefile
HOST = 0.0.0.0
|
|
API_PORT = 5000
|
|
CLIENT_PORT = 3000
|
|
|
|
export FLASK_APP = $(PWD)/fittrackee_api/server.py
|
|
export APP_SETTINGS=fittrackee_api.config.DevelopmentConfig
|
|
export FLASK_ENV=development
|
|
export TEST_URL = http://$(HOST):$(CLIENT_PORT)
|
|
export DATABASE_URL = postgres://fittrackee:fittrackee@$(HOST):5432/fittrackee
|
|
export DATABASE_TEST_URL = postgres://fittrackee:fittrackee@$(HOST):5432/fittrackee_test
|
|
export MIGRATIONS = $(PWD)/fittrackee_api/migrations
|
|
|
|
# Python env
|
|
PYTHON_VERSION ?= python
|
|
VENV = $(PWD)/.venv
|
|
PYTHON = $(VENV)/bin/python
|
|
POETRY = poetry
|
|
FLASK = $(VENV)/bin/flask
|
|
PYTEST = $(VENV)/bin/py.test -c pyproject.toml -W ignore::DeprecationWarning
|
|
GUNICORN = $(VENV)/bin/gunicorn
|
|
COV = $(VENV)/bin/python-codacy-coverage
|
|
BLACK = $(VENV)/bin/black
|
|
|
|
# Node env
|
|
NODE_MODULES = $(PWD)/node_modules
|
|
NPM ?= yarn
|
|
|
|
#Sphinx Docs
|
|
SPHINXOPTS ?=
|
|
SPHINXBUILD ?= $(VENV)/bin/sphinx-build
|
|
SOURCEDIR = docsrc/source
|
|
BUILDDIR = docsrc/build
|