aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2021-06-04 00:54:58 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2021-06-04 00:54:58 +0530
commit0196e8c06d35fdd41e3962e37e98812694a10513 (patch)
tree4f3b99243eb459d09c5510ccab6eeff16ab95c2a /Makefile
parenta7994164fdc3c7465732b61933105c4e7590eec3 (diff)
added makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..87d5b6b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+# Makefile
+
+## Configuration
+
+PROJECT := $(shell basename $(PWD))
+
+## Install Dependencies
+.PHONY: install
+install:
+ pip install -r requirements.txt
+
+## Create Database
+.PHONY: db
+db:
+ cd app && ln -sf config_dev.py config.py
+ FLASK_APP=app python -m flask database create
+
+## Start Dev Server with Hot-Reloading
+.PHONY: dev
+dev:
+ cd app && ln -sf config_dev.py config.py
+ FLASK_APP=app python -m flask run --reload --debugger --extra-files ./app/templates/base.html:./app/templates/contact.html:./app/templates/index.html \ No newline at end of file