Skip to content

Commit

Permalink
change makefile descriptions + add urls and credentials in README
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanMarmelab committed Apr 3, 2024
1 parent f098336 commit 52741d2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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...";
Expand Down Expand Up @@ -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
run: start-directus run-demo ## start the demo app with local Directus
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: `[email protected]`
- password: `d1r3ctu5`
- Your Directus environnement should run on this [http://localhost:8055/](http://localhost:8055/)
- You can login with same credentials

### Stop the Database

Expand Down

0 comments on commit 52741d2

Please sign in to comment.