diff --git a/Makefile b/Makefile index a8c4642..9cc1aba 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ help: @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' -init: ## initialize .env file +init: ## initialize .env and data.db file, install dependencies and build @echo "Initializing .env file..."; @cp ./packages/demo/.env.example ./packages/demo/.env @echo "Initializing data.db file..."; @@ -45,15 +45,15 @@ test-unit: ## launch unit tests echo "Running unit tests..."; yarn -s test-unit; -start-directus: +start-directus: ## start local Directus @echo "Starting Directus..."; @cd ./directus && docker compose up -d -stop-directus: +stop-directus: ## stop local Directus @echo "Stopping Directus..."; @cd ./directus && docker compose down -run-demo: +run-demo: ## start the demo app @cd ./packages/demo && yarn start -run: start-directus run-demo \ No newline at end of file +run: start-directus run-demo ## start the demo app with local Directus \ No newline at end of file diff --git a/README.md b/README.md index 15ff8cd..c8c1542 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,12 @@ This repository contains: - Clone this project - Run `make init run` to install the dependencies and start the Demo App +- Vite should show the local URL where the development server is running +- Go to this url and login with: + - login: `admin@example.com` + - password: `d1r3ctu5` +- Your Directus environnement should run on this [http://localhost:8055/](http://localhost:8055/) +- You can login with same credentials ### Stop the Database