feat: adding a Makefile at the root.
This commit is contained in:
parent
935d3812f7
commit
5815ab2a22
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,4 @@
|
||||
dev-db/
|
||||
database/
|
||||
**/.env
|
||||
PostgreSQL/build/*
|
||||
*.data
|
||||
|
14
Makefile
Normal file
14
Makefile
Normal file
@ -0,0 +1,14 @@
|
||||
DIR_SQL = PostgreSQL
|
||||
DIR_BACK = back-end
|
||||
|
||||
BIN = prepare_dev
|
||||
|
||||
all: $(BIN)
|
||||
|
||||
prepare_dev:
|
||||
cp $(DIR_BACK)/.env.example $(DIR_BACK)/.env
|
||||
|
||||
clean:
|
||||
rm -f $(DIR_BACK)/.env
|
||||
cd $(DIR_SQL) && make clean
|
||||
|
12
README.md
12
README.md
@ -9,18 +9,18 @@ On aime les briques
|
||||
|
||||
## Generating data
|
||||
|
||||
To use the script `generate_data.py`, do :
|
||||
|
||||
1) `cd PostgreSQL/`
|
||||
2) `rm -fr build/*` (don't remove the directory, just the files in it.)
|
||||
3) `python generate_data.py`
|
||||
```
|
||||
cd PostgreSQL/
|
||||
make generate_data
|
||||
```
|
||||
|
||||
## Dev
|
||||
|
||||
To run postgresql server + adminer in dev environnement (assuming you're running the backend manually with node), run :
|
||||
|
||||
```
|
||||
cp back-end/.env.example back-end/.env
|
||||
cd free-briques/
|
||||
make
|
||||
docker compose -f docker-compose.dev.yml up
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user