Skip to content

Commit

Permalink
Impliment Makefile (#422)
Browse files Browse the repository at this point in the history
* impliment makefile

* update .PHONY and comments
  • Loading branch information
MattPereira authored Aug 10, 2023
1 parent e2eda5e commit dd1dfc2
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 42 deletions.
35 changes: 35 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.PHONY: build start stop build-linter lint migrations migrate db-shell test-server test-frontend

# Run commands with `make <target>`

build:
docker compose build

start:
docker compose up

stop:
docker compose down

build-linter:
docker compose build linter

lint:
docker compose up linter

# Below commands require the docker containers to be running

migrations:
docker compose exec django python manage.py makemigrations

migrate:
docker compose exec django python manage.py migrate

db-shell:
docker compose exec django python manage.py shell

test-frontend:
docker compose run -T -w /code/frontend webpack npm run test

test-server:
docker exec django python manage.py test server.tests
6 changes: 0 additions & 6 deletions alias-config.txt

This file was deleted.

36 changes: 0 additions & 36 deletions alias.sh

This file was deleted.

0 comments on commit dd1dfc2

Please sign in to comment.