-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (39 loc) · 1.08 KB
/
Makefile
File metadata and controls
52 lines (39 loc) · 1.08 KB
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
43
44
45
46
47
48
49
50
51
52
# File Name: Makefile
# Purpose : Symplify project commands
# Author : Victor Arnaud
# Date : 01/06/2018
all: install migrations migrate rdf sesame
SERVER = 0.0.0.0:8000
run:
# Run the development server
python3 softeng/manage.py runserver ${SERVER}
install:
# Install python dependencies
pip install -r softeng/requirements.txt
migrations:
# Create all migrations from models
python3 softeng/manage.py makemigrations
migrate:
# Migrate all migrations on database
python3 softeng/manage.py migrate
superuser:
# Create a superuser on system
python3 softeng/manage.py createsuperuser
staticfiles:
# Generate the staticfiles
python3 softeng/manage.py collectstatic
populate:
# Populate the sesame triplestore with RDF file
python3 ontology/populate.py
rdf:
# Create RDF file
python3 ontology/RDF/ontology.py
query:
# Query to triplify the rdf protege to rdf triplestore
python3 ontology/query.py
sesame:
# Run the sesame triplestore container
sudo docker-compose up -d
clean:
# Remove all __pycache__
find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf