project Matcha 42
$ node -v
v20.14.0
- If the database schema changed you need to delete the db/data folder so that it's rebuilt (will be re-created). Admin rights needed (couldn't delete on school imacs)
- make clean
- then just run make up
- frontend is at localhost:4000
- to look into the database, open adminer at localhost:8080 and enter db credentials
- to check backend routes and test them, localhost:3000/docs
- to enter a container, for example frontend, run
docker exec -it matcha-frontend sh
and you'll have a shell within the container
Run the init script in test to generate user data
$ cd test
$ ./init_basic_user.sh
- Connect to adminer (go at localhost:8080)
- credentials (server: matcha-db, username: myappuser, db: myappdb)
- select all tables, click drop (now there is nothing at all, no data and no schema)
- click import on the upper left, upload the init.sql file from the repo (at db/init.sql)
- click execute and you're done
test