-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
42 lines (32 loc) · 1.2 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
#@-- help command to show usage of make commands --@#
SHELL := /bin/bash
SHELLFLAGS := -c
activate := env/bin/activate
help:
@echo "----------------------------------------------------------------------------"
@echo "- Available commands -"
@echo "----------------------------------------------------------------------------"
@echo "---> make env - To create virtual environment"
@echo "---> make install - To install dependencies from poetry.lock"
@echo "---> make migrate - To update the database with the latest migration"
@echo "---> make run - To start the server"
@echo "---> make help - To show usage commands"
@echo "----------------------------------------------------------------------------"
env:
@ echo '<<<<<<<<<<Creating virtual environment>>>>>>>>>'
python3.10 -m venv env
@ echo ''
install:
@ echo '<<<<<<<<<<installing requirements>>>>>>>>>'
poetry install
@ echo ''
migrate:
@ echo '<<<<<<<<<<creating migrations>>>>>>>>>'
python manage.py migrate
@ echo ''
run:
@ echo '<<<<<<<<<<starting server>>>>>>>>>'
python manage.py runserver 8080
@ echo ''
default: help